Added ability to pass parameters to an exposed constructor function.
This allows to receive parameters that are specific to the exposed functionality and not relevant to the global config object.

Fixed #176