Adjust Slack message format to match HipChat's

Also add some tests for formatting. See #586.
Merge pull request #613 from ciarand/master

Adjust Slack message format to match HipChat's