Allow variable max message length per account type

Maximum message length is a class attribute rather than fixed and the
same for each account type.