Implement parsing of assignments and login method

Please put this in its own file.