Initial move to using twirl for template parsing.

# Do not merge!

Still failing tests for 2.11.