New template structure

No comment
we should reimplement xml validation. Guess that we have two schemas now:
* Base template
* Protocol template
Down the road the protocol template could even be protocol specific...