RankMgr: Renamed PermissionGroup to Group in API and PermGroup in DB.

"Group" is SQL keyword and shouldn't be used as table name.
RankMgr: Implemented the basic API functions.