Inbox messages are now ordered by date not contact
Added hasHTML which tests for HTML in a String
Will now strip excessive new lines also FIX for html removing \n

stripExcessiveNewLines: Will allow up to 2 blank new lines before
stripping them from a message to improve readability in message
view.

FIX: As a precaution we were parsing for HTML every time even if a 
message specified plain/text (as some naughty spam was doing but
still contained HTML).

This had the side effect of removing \n's which we put everything 
into one giant wall of text.

Now tests for hasHTML before parsing it out.
FIX: Subject with no body was showing up blank
Added getAutoReplyTypes so I can lookup type vs id e.g. P = 4
Embiggened quick tools width

Song request wasn't properly enclosed as an A tag, doing this
pushed it over the 200px limit and wrapped the box to two lines.

Fixed by the powers of embiggening
JQuery POST file for setting contacts as JUNK
Added max message id for use with main inbox view
Added canJunk and canReplyFromInbox permissions
Layout and jQuery functionality changes

Added auto reply functions

JS Added: replyGeneric, replyPrayer, replySong, replyCompetition
All are used with autoReply for setting contacts as replied to

junkMail: Sets contact as a spammer and removes from inbox view

QuickTools changes:

If we can see the full message and have appropriate permissions 
then show quick tools

TR changes, added contact id as id for removing table rows in 
JQuery