Finished AMD loading by adding templates.
Merge branch 'AMD' into development

Implemented AMD loading using Require.js.