increased session cookie timeout to 24h
added plugin support and application event emitter