Added utility for parsing JSON strings
Implemented new toString method for clearer output
COMPLETE rewrite of login method and threading