Preliminary implementation of session keep-alive functionality (#1). Logging out now shows a dialogue for confirmation. Pressing the back button in the ApplicationListActivity is now the same as pressing the logout button.