first wild swing at converting all of the web files to use a factory method and check for define/require/modules/exports to allow them to be usable in AMD loading methods (see updated NodeJS and new RequireJS tests)