Fixed primary key definitions.
Added acl rules to record function in guide controller.
Fixed UserIdentity implementation. Who decided to return 'username' as 'id' in 'CUserIdentity'? This does not work with rbac out of the box. Big shit.