Added handlers for user permissions

Handlers to access permissions/permission
Handler to update a permission
Fixed bug in changes handler
Add tests for permissions

Seperate normal user and admin user in tests
Add tests for permissions