Added geojson fixed up javascript and php

Changed data format to geojson. Moved a bunch of the processing to php
and cleaned up the javascipt.  There is still a bunch of commented
console messages that I may need in the future.