Split out features in Login, Logout, Signup

Abstract out common functionality into base Signup, Login and Logout
classes, from which BlogSignup, WikiSignup etc inherit from for their
own specialised functionality