Added testing, tests for some polygon functions. Moved polygon to the geometry package, and created a shapefactory class. Baseassetmanager is now a shapefactory. Shapefactories are singletons which are accessed through a static method of the shape factory class, which significantly decreases the coupling of the geometry class to the configuration class.
Woops, here are the changes for the previous commit.