RESTful JSON api boilerplate with Basic Auth