Changed format of events. Added test for user login.

Changed events so that they can be instantiated to include custom data. Test user is now tested for login during AuthTest.