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