Slight usability improvements

* Produce better error messages when things go terribly wrong.
* Allow setting the API end point with the RAZOR_API env var