Fixed login activity backstack cleaning. Implemented logout functionality. Added master/detail navigation and raised API Level due for compatibility.