Switch from LOGIN to SASL PLAIN. Add remoteproxyuser to use in authorization

Comes in handy if admins want to migrate accounts. Comments and corrections welcome.