simplified code in core, added events and factory files
decided that factory functionality should go in other places
added space.js, putting factory stuff in there mostly
space member variables
added game object