Combine base classes way_cb_func and rel_cb_func into single base class cb_func. Move thread handling out of middle_t into osmtypes.cpp.
Threaded pending process work in progress.