fixing bug where the number of posts counted was incorrect (1 over), causing thread tools to not appear when a topic was locked.

also integrated bootbox into confirm dialogs for thread deletion
adding a confirm dialog behind the theme revert button in the acp