Refactored the Account class.

* Moved login logic to the Account class.
* Account initialization via the CLI is much easier now.