Move message modification functions to separate class

This unclutters the main class and allows unit testing of spelling correction.
Fix bug in capitalise function
Add tests for message modifiers

Tests for spelling correction are disabled as I don't know how to work with stubs.