Split VM templates and node templates

In addition, remove some useless files and add new tests
Attach element attributes to script to re-use solver-api.
Other constraints of solver-api except SequentialVMTransitions