Added login logic and communication.
Added a generic interface that will define all communicatin methods.
Minor design improvments