Restructured Server into inheriting from EventEmitter (preparing for the future), and allowing for easily extending the base version