Use libauth.

This commit pulls changes from libauth and changes from stub to make
stub use libauth instead of a placeholder sp_session_login() call.