OSM mapping log and hooks functionality

It also contains man pages for OSM commands (fixes #382)