Moved ship to its own class.
Moved gate loading and creation to its own factory class.
Moved enemy creation and management to its own class

Using one central clock instance that pushes its delta to all the
factories.
Removed jquery.