code: function(req, res, next) {
                      if (req.headers.origin === undefined) {
                          res.setHeader('Access-Control-Allow-Origin', "*");
                      } else {
                          res.setHeader('Access-Control-Allow-Origin', req.headers.origin);
                      }
                      res.setHeader('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE, OPTIONS');
                      console.log(req.method + " on " + req.originalUrl);
                      if (req.method === "OPTIONS") {
                          res.setHeader('Access-Control-Allow-Headers', 'content-type');
                          res.setHeader('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE, OPTIONS');
                          res.setHeader('Content-Length', '0');
                          res.setHeader('Content-Type', 'application/json; charset=utf-8');
                          grunt.file.read(req.originalUrl.split("?")[0]);
                          //res.write(body);
                          res.end("200");
                          //next();
                      } else {
                          next();
                      }
                  }
docs: connect.compress({ level: 9 }), require('connect-livereload')(),