Added an event emitter and a base for modules (and plugins). Started with a Login module (mainly for testing the events)