Throw error incorrection credentials

Have the XML-RPC layer throw an exception if authentication credentials
are not correct.

Fixes #456.
Merge branch '456-fix-authentication-error'