Render exceptions properly.

We were always producing an error 500 since we did not returned a
rendered exception into a WSGI error.

closes #2
Add domains to identity API calls.

closes #3