Refactoring/enforce valid user interaction.

Added disabling of SIP arrange originals panel action buttons when the
user has highlighted an items that the action should not apply to.
Also made it so the disabling takes place on page load. Also minor
refactoring.