Major change n structure to match express MVC. Separated event handlers and functions. Fixed session Bug