Support for custom logger function
It is useful to have the ability to redefine logger function (especially for an embedder). To achieve that, process._logger method and C++ logging function are added. This change is designed to avoid affecting the current behaviour (unless you've set the custom logger up).