Implement API non-RESTful format, JSONP, CORS

Fixes #53.
…and throw in `else`.