Moves client login to Client class. Adds more error checking. Semi-implements message editing/deleting methods.