Don't really pull this

I promised a commit by the end of the day and here it is. Its a non-working code base though. If you want to see how I am trying to move to an event driven processing for doLogin, well this is it. If on the other hand you want to wait for me to complete it then try it, well don't pull ;-)