Fix framebuster/mobile toolbar with new bundles

This fixes a regression introduced with
80530b6637f2b8d10a26c297e67b59aebb0a875d.
Fix framebuster missing dependencies
Fix js error when deleting a comment
Fix distinguishing using the wrong template in certain contexts

The api endpoint for distinguishing needed to take into account
whether or not the page was a "profilepage" in order to use the
correct template.
Fix login not reloading the page when hash in url
Fix subtree being removed on comment delete