Dispatch 5.x rewrite (big changes, please see README.md)