Refactoring and fixes for #12, #71

Refactored user and API client code to encapsulate all API calls in one class. Other changes to keep naming conventions in line with rest of the code. Few bug fixes.