Small refactor of the Login/Auth object.

Refs https://github.com/piwik/piwik/pull/299 - instead of creating loginFlow object, maybe we can throw events from the methods `processFailedSession()` and `processSuccessfullSession()`