Rewrote most of the parsing so that it handles messages better. There might be some slight problems with some bbcode handling now, but that will be fixed soon. The slight bit of bbcode that is not handled is more than made up for by the huge improvements elsewhere.