REFACTOR: change dirs to directories in package.json
REFACTOR: move JSON configuration to http.