Minor refactoring and code cleanup.
Inline request handling methods to avoid using implicits.
Extract val for HTTP authenticator.