Structure hipchat code in a better way

Originally part of (abandoned) [https://trello.com/c/uAgHlUjs/2368-create-trello-ticket-from-papertrail-error](papertrail efforts)