Add AppContext in a Common Library

Add UserGroup pages to create and edit.
Fix Edit User pages
authentiation control flow now works correctly
Merge branch 'master' into development
Merge branch 'development'