Create a new configurable system for message output

Create a dictionary parameter that the consumer app can use to map this modules output.
Change the code to call an internal function which performs the correct output call.