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