Revamps login to seperate login and authentication.
Fixes the warningless build
Merge branch 'test-branch' of github.com:roflincopter/dmp into test-branch

Conflicts:
	dmp-client/dmp_client.cpp
	dmp-server/dmp_server.cpp