FIX: `date` IS NULL, not `date` = NULL + Implemented send Messages
Reorganised constructors.  Added check for initalise by ID

So that we don't just assign a phone or email or update with
nextFreeUser
Bug Fix: out of bounds when only 1 index for SMS message
Implemented Footer, template reading and extra debug + FIXES
FIX: Cast Exception so built languageArray manually
FIX: NullPointerException if name substitution was null
FIX: Properly escaped { and }
FIX: body.replaceAll returns the string, it doesn't replace in place
TODO Move @sms.xpressms.com to settings table
Skeleton for looking up phone numbers in custom fields
Schema changes
* Removed Inbox Maps
* Added special flag for auto replies
* Increased settings value to 50 vchars
Reading smsFromEmail from DB so need to move this higher up in the chain
Added smsFromEmail setting
Added Mapped Language so we can get the parent templates for content

E.g. we may not want to write hindi script but we can use roman hindi
instead so even if a contact is set to Hindi Script we don't have to 
make another template for Hindi Script.

Relies on KeyValue having an extra mapped value
Added language switching for footers based on parent language templates
Added mapped language support to templates