Use the new libauth interface.

This creates a spua_config, uses spua_getenv() to fill it, and uses the
new spua_mode login methods.