Imported Templater.
Also added some minor fixes for Bootstrap.
more work remains to be done on the code style of Templater.