Package generation refactoring, stage 2.

Imported 3rd-party open-source modules which are being distributed
for NGINX Plus.
169 files changed