Improved RESTful API support.

System version 0.315
modules:
Blogs 0.053
Comments 0.014
Cron 0.006
Feedback 0.004
HybridAuth 2.1.1-cs24
OAuth2 0.018
Photo_gallery 0.005
Plupload 1.5.7-cs7
Static_pages 0.030
plugins:
Admin_default_theme 0.004
Fotorama 4.2.1-cs2
SimpleImage 2.3-cs1
TinyMCE 4.0.3-cs1