Removes default block
Moves commands into separate function

Moves template commands into a separate function,
cleaning up main parse loop.
Add scope stack
Renames tests to align with template terminology
Add default block content