Improved content type handling

Function responses now have a Content-Type header of application/json
unless a callback is used, in which case it is application/javascript
A Content-Length header is also included
Bumping version number to 1.1.2