Remove Map::cleanup and Painter::cleanup

Both were noops.
add user agent header

fixes #628