Fix the check_auth call to math module permission
Improved user permissions check
Removed useless blocks
Added the session_config.lifetime configuration variable
Missing comma...
Typo.
metadata : getVal added default value, new method to set/update a metadata
Added method to get sale stats on a product
Fixed domain to use core if null
Merge pull request #913 from bibich/improvements

Improvements
Add content type on all error message
Merge pull request #908 from roadster31/module-conf-fix

User permission check and session improvements
Merge pull request #915 from lovenunu/api-header

Add content type on all error message