Improvements to fetching

Contributed to open source
Wrote a wrapper for the fetch API so we can handle any non 200 error and show an error banner in the page with the appropriate error code and description of the failure.