Revert CSRF in JS
API error codes + returns JSON
Merge branch 'master' of https://github.com/Phyks/Freeder
Fix API