fix to ensure that the list of apps the user is an admin of stays up to date
added unit testing for new functions
comments addressed
Merge pull request #475 from briandrawert/update-login-cookie-app-list

Fix to ensure that the list of apps the user is an admin of stays up to date