code: function loadTasks(dir) {
      /**
       * Resolve any relative paths
       *
       * @type    {String}
       */
      dir = require('path').resolve(dir);
  
      /**
       * Interal collection of modules loaded
       *
       * @type    {Object}
       */
      var modules = {};
  
      /**
       * Get a list of items in a directory. This is synchronous since we're
       * only doing this once on application load
       *
       * @type    {Array}
       */
      var list = require('fs').readdirSync(dir);
  
      /**
       * Setup the Regex to filter out *.js files but exclude files with
       * multiple `.` in them
       *
       * @type    {RegExp}
       */
      var jsFileTest = /^\w+\.js$/i;
  
      // Cycle through each item in the directory
      list.forEach(function(module) {
        //Check to see if with have a match and if we split it apartment
        if (jsFileTest.test(module)) {
          // If we find a match try to load and save it. Otherwise log an error
          try {
            modules[module] = require(dir + '/' + module);
          } catch (err) {
            console.error('Unable to load ' + dir + '/' + module, err);
          }
        }
      });
  
      return modules;
    }
docs: Loads Grunt configuration modules from the specified
  relative path. These modules should export a function
  that, when run, should either load/configure or register
  a Grunt task.
  
  @param   {String}   dir   Directory to load