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
using HelperFunctions.shell instead of backticks so that we can mock it out, fixing broken unit tests
Merge pull request #476 from shatterednirvana/shell-without-log

Using HelperFunctions.shell instead of backticks so that we can mock it