[WIP] Split osm executables into a library and exe

DO NOT MERGE.
This is a work in progress for the splitting of executables into a library (modules prefixed by Osm_ and located in osm/lib). This way you can use capabilities of the executable into an other via the library.

cc @glionnet @engil