clean configuration files, move most of code to main App, modify login/logout logic