Fix bugs:
- bbcode with quotes wasn't parsed on post merging.
- user_lastpost_time field wasn't updated on post merging.
- minor script adjustments.