adding tests for ObjectObserver
modularize mdv/template

Split template.js into template, templateInstance and templateIterator.
And modularize those files.