Added distanceFromViewport method.

The super hacky test data formatter is kinda working.
Merge branch 'master' of github.com:markfinger/viewport