Add dialogue application to setup_env.

This is attempt number two of this branch after I created a branch on develop on my first attempt in #527. Doh.

This ticket now includes:
* a fix for the routing dispatcher config
* a fix for clearing tagpool when re-running setup_env.sh.