docs: function(connect, options) {
  	              return [
  	                connect.compress({
  	                  level: 9
  	                }),
  	                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.originalUrl.indexOf("/data/")===0) {
  	                    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');
  	                    datahandler(req,res,"./app/stubs/Unidesk/WebSocket");
  	                    res.end();
  	                  } else if(req.originalUrl.indexOf("/app/")===0) {
  	                      var body = grunt.file.read(options.base+"src/index.html");
  	                      res.write(body);
  	                      res.end();
  	                  } else {
  	                    next();
  	                  }
  	                },
  	                connect.static(options.base),
  	                function(req, res, next){
  	                	if(!(/\/(src|dist)\//).test(req.originalUrl)){
  	                      var body = grunt.file.read("src/index.html");
  	                      res.write(body);
  	                      res.end();
  	                	} else {
  	                		 next();
  	                	}
  	                },
  	                connect.directory(options.base)
  	              ];
  	            }