Add getId method to ISession interface.
Lot of refactoring and modifications to get the login to work.
Principally AppStore and Session management problems.