Implement API non-RESTful format, JSONP, CORS

Fixes #53.