Changing how error messages will be handled.

Now we have a setErrHandler method will store a std::fuction<void(cons
char*> so it can be called by the notifyErr(cons char*) function.