Use connect for serving static assets
Misc changes
Remove useless files
Refactor server
Fix compilation source
Minor fixes in helper functions
Fix structure of event class