move looksLikeLatLonPair into lib.php, basic PHP test suite using phpunit