Added loginscreen redirect to RepositoryActivity
Added logout button to settings.
Added some javadoc
More javadoc.
Tests + more javadoc.