Move format specs to their own file. Add format template specs.
Add template handling and local spaces.