Style .box-head separately from .box-title.

The .box-title class was being styled with a border and background, but
this really belongs in .box-head. By doing this, it's easier for us to
change the style of one or the other, and to add additional elements
inside of .box-head.

Reviewed at https://reviews.reviewboard.org/r/5755/
Added sandboxing to action_hooks

This change adds sandboxing to the various action hooks (which allow users to
insert buttons or menu items into various pieces of the UI), so that broken
extensions won't break everything.

Testing Done:
Unit testing done - tested all 5 different action hooks (DiffViewerActionHook,
HeaderActionHook, HeaderDropdownActionHook, ReivewRequestActionHook,
ReviewRequestDropdownActionHook) with and without the sandboxing. Ran on all
tests in extensions/tests.py

Reviewed at https://reviews.reviewboard.org/r/5710/