Add a maximum length administration setting that gets applied to chat messages.

Reject all messages longer than this value (as set in admin settings).  Adds maxlength attribute on clientside but doesn't polyfill for IE9 and earlier (these will be rejected at the server).