more work towards a working three-tier deployment.
change JSON handling to maintain ordered of templates, which seems important to cloudformation builds.