Refactored superbox writing.  Closes #153.

At the moment this only affects jp2s and asoc superboxes for now.
Merge branch 'issue153' into devel