Moved some alignment stuff to utils.
Make alignment-stats return a map; incorporate into quotes output.