Add api tests for permissions (list and add)
Fix issue with mass_insert when existing data already exist.
Remove mobile detect