Rewrite/Restructure of core Crafty functions.

Selector is now a proxy for calling functions on the objects it
contains.
Added CraftyEntity to take responsiblity for core Entity functions
Added a window.unload event handler to stop crafty in an effort to stop
memory leaks.
Added newEntity/removeEntity to core Crafty.