implemented correct error messages for login and registration. Added error_code for internal protocol errors to handle errors rather than just pass a message describing the error
Merge pull request #52 from ahlen/master

implemented correct error messages for login and registration. Added err...