Add decanter as Pypi-installable library, fix some bugs

Also add slightly better debugging to the `Dispatcher` class.