minor code cleanups

some added debugging info

fix bug which prevented client markup on posts

big fix for bug which caused posts dimmed in one tab to overwrite posts dimmed in another
 dimmed posts are now written by the background page; extension code sends it messages to do work