Massive refactor of BindBundleCommand to radically improve code maintainability.

This pull request is probably easier to understand by looking at the resulting code, not the diffs themselves. There is more that can be done to clean up from here, but this is a huge step forward.
I want to object to the Msi prefix (clearly already claimed) but it's already used and I just can't work up the energy...