Added new RapidContext.App.login() and logout() methods.

Changed login and start apps to use new helper functions.