Added unit tests for minTranslationVector and nearestEdge.

Also draws the velocity and the nearest edge of the polygons in the html
test.