Lot of code cleanup
Fix typo in previous commit, add if in getExtraClasses if there is no extra type
add autoplay for DIVX player & vlc ref #74
Change the way to declare API routes
Add Error() hook to send a JSON response when it fail
Cleanup API routes
Fix typo on extraType
Add rights part, still have to finish it
Implements rights in view
Secure API with that rights
Add new right canDownloadFile