Registration system update

Added ability to register with the server. Registering creates both a
local and online profile (so the user can in future login should a
connection be unavailable). Actual application login is still local
only, this should be changed in the next revision.