Refactoring alignment code.
Refactored BodinAlign.js.  One step forward.  Two steps back.