Fix auth

Authentication was broken when I refactored the xmlrpc class simply
because I wasn't careful enough. This fixes that and cleans up a few
small things.
Merge branch 'xmlrpc-authfix'