Added templates

Removed inline string templates and am requiring via dojo/text. Also
changed some paths to relative.