initial cut
record last login
more updates on roles refactoring
merged with develop
Merge branch 'roles_refactor' into develop

* roles_refactor:
  more updates on roles refactoring
  record last login
  initial cut