improve template parser
add cloneNode with fix for IE, improve parseTemplate
improve parseTemplate and fix cloneNode for ie
improve parseTemplate, add more tests