Kludgey HipChat integration. Definitely in need of a tidy-up but it works at this stage.