Session service implemented to use $cookieStore in order to persist logged users throughout page refreshes.