Added optional Javascript callbacks on all API endpoints
Needs improvement:
 * Configurable in the config file
 * /endpoint?callback=example redirects to /endpoint/, dropping all get args
    IMO should have /endpoint work and be encouraged, tailing slash is silly
 * Whole thing needs to be rewritten in python