ObjectFactory Fix

Various fixes for the object factory. Also implemented a new base for
all objects in the game. This will allow for the use of pooling for
components, in the future. Hell yeah?.. Hell yeah.