added global variables and functions

added global variables to store userId, email, firstName, lastName when
logged in.  Also added functions for addFavorites and getFavorites.
Needs some fixes though