created shape base class
cleaning
switched from raphael to d3 and moved the origin into the center