fix up augeas templates so they would theoretically work.
simplify the shit out of this.

Stop. STOP STOP using cascaded datastructures.

Use hashes. They are guaranteed to be ordered under Ruby 1.9 so don't
bother with arrays of hashes.