Add package generation from configuration file

This adds the code from the googleapis repository. The only change is that
the file locations are no longer resolved relative to the script but to the
configuration file.

R=kustermann@google.com
BUG=

Review URL: https://codereview.chromium.org//528213003