User permissions

Add more fine grained user permissions for authorization purposes.