split the positionModal function into 2 methods so it's easier to test, added a bunch of tests for finding the position the modal should reside at, and added another example and some cursory documentation for the modal on the patterns example page
Merge branch 'master' of github.com:plone/mockup