Draft implementation of API improvement that allows use one callback for success responses and errors
Bugfix in _process_pub_message() method
Slight changes