Format management

Param :format in url restric the response to the right format (.json,
.xml, .html).
* json done
* xml TODO
* html TODO
Merge branch 'master' of https://github.com/eherve/ApplicationPortal