API: Move LimitWordCount() to Varchar

From http://open.silverstripe.org/ticket/5793.

Moved LimitWordCount() and LimitWordCountXML() to parent class for use on titles and misc code cleanup.