Fix dialogue vumi_app.js bugs

These include:

* Use of Q promises doesn't work in production.
* Test data and means of looking up entry_endpoints on states is incorrect.