Passing this instead of window to the library to make it compatible with Web Workers
Introduced an ID to each object in order to make it possible to communicate with Web Workers
Added a separate debug script to keep FPS counter, QuadTree displaying etc.
Performance optimizations: keeping array of active asteroids and bullets in their respective layers instead of recalculating them on each frame.