Correct some problems with the IDM routes.  Mostly works.
Merge branch 'master' of https://github.com/tobysaville/veda-hackathon2