Fix bounding box feature

Now you can use minX/minY/maxX/maxY and bounding boxes for cool
collision detection.
Fix math and vector problem and fix json read data of bounding box
attachements data.