Refactor Server#login_request and #logout_request.

Remove these methods as the request creation is now contained within the
Request subclasses.

Stop capturing login and logout as #last_request.
Fix nilling out socket and tcp connection.