Fix bad indentation and syntax errors in new filter infrastructure.
Add filter template model spec.