Handle <super> in template JSON.
Some refactoring so JSON and markup forms of <super> share more code.
Remove some sample files.