Added authorisation, login and registration

The new Go API now supports login/authorisation and registration, if
the server allows it (changes can be made in config.go - but the server
has to be rebuilt)