added modules, package.json
middleware for affiliates implemented
exported config and affiliate to individual modules