Add support for creating users via API
Return "unauthorized" for HTTP requests

`instance_request` normally sends users to the login page. For the API
we really just want to return a 401
Merge pull request #1139 from azavea/topic/api/create-user-api

Add support for creating users via API