Fix a couple of AutoAPI bugs to make it compatible with AngularJS 

* Trailing slash in AutoAPI URI is now optional
* AutoAPI handler can now handle Content-Type with charset

These changes make an AutoAPI resource compatible with AngularJS's $resource service.