update URL for new github location
move the test to C++

relates #734
some more uses of base/map.h
some attempts to fix grids and python

relates #734