Velocity resolution fixes, new properties

Velocity is now resolved based on the direction the collision occurred
(it could also be a good idea to add a callback)
Added setX, setY, isLeftOf, isRightOf, isAbove, isBelow, hasMovedLeft,
hasMovedRight, hasMovedUp, hasMovedDown properties to shape and body