Refactoring API and Login

Moved user functions to User.java. Refactored gui components to match.