PM message in e-mails

http://community.mybb.com/thread-137703.html
Fixes counters may be negative
Improving thread/post/user counters
PM message in e-mails

Applies the suggestion from @nmalcolm
Fixed a bug in thread.js and ported post.js

I've also removed jGrowl messages when multi-quoting posts.
Promotions optimization
Fixes #160
Fixes XSS in misc.php
Adding missing break in promotions task
Fixed DST detection (used old Prototype code)
Fixed Quick Edit and errors are not displayed

Couldn't select the text in the text area.
Was not showing errors (e.g. "already posted this reply").
Reputation is almost working (jQuery conversion)
Report posts now working

Converted Prototype to jQuery (modals)
Cache templates
Reputation working and fixed bug in Report Post
Added missing typeahead and fixed ModCP reports
Fixes XSS in inc/class_parser.php
Fixes SQL injection in admin/modules/config/smilies.php
Fixes typo in some queries
Soft delete WIP
Adds missing database column