Added validating params with param middleware.
Added require-directory to package.json.