Add functions to generate layout tags.
Fix problems with group rules and zoom levels.
Add tests.
Remove tab from group layout output.