Add core template.rb for the basis of template libraries for opal