Added basic Tank Functionality

Also refactored login code.