working on auth and fixing global scope issue.
Added bunch of auth stuff and setRoles endpoint for semi-atomic account management.
Merge remote-tracking branch 'origin/authDev' into dev

Conflicts:
	packages/system/public/views/header.html