modified all AMD files to use the require.js array of requirements instead of using the 'require()' function, as the r.js build process seems to require this.  Split the class definition of TMLib and the instantiation of it into 'tmlib' into two separate files.
build: created stuff for using r.js to make a base build of tmlib