first shot at mtr refactor

this "works" with google layers, but it still crashes when you zoom in really quickly (like 10 times in a row). I just tried it with osm and it crashes immediately. Still some debugging output.