docs: function writeFile(namespace, fileName, fileLocation) {
    var file;
    if (namespace) {
      file = path.join(namespace, fileName);
    } else {
      file = fileName;
    }
    var params = {
      localFile: fileLocation,
      ACL: CONSTANTS.AWS_BUCKET_PERMISSIONS,
      s3Params: {
        Bucket: config.bucket,
        Key: file
      }
    };
    var deferred = q.defer();
    var uploader = awsClient.uploadFile(params);
    uploader.on('error', function(err) {
      console.log(err);
      deferred.reject(err.stack);
    });
    uploader.on('end', function() {
      deferred.resolve(fileName);
    });
    return deferred.promise;
  }