Role-based Access

Introduce the concept of role-based access for agents.
Implement role-based access
orm: Convert agents listing to be ORM based
Rename getRole to getUserType
roles : Implement role-based access system-wide
oops: Fixes
upgrade: Add upgrade/migration

Adds migration patch for role-based access