Rename and fix os-collect-config config template

This template was in the wrong path, and missing some parameters.

Change-Id: If8214cdb3597bc65f92e0e7a4fb8038342c39ae4
Bootstrap os-collect-config during image build

Os-collect-config minimally needs to be told what command to run. The
first time it runs it will detect the Heat and/or ec2 metadata change,
and run os-refresh-config, which will write out its configuration again.
After the command returns os-collect-config is expected to re-execute
itself to grab this configuration.

Change-Id: I3294e251a7a3373adb1e994eef7ada99aab8282a
Install os-apply-config in a virtualenv.

Due to the older python distribute still shipping on Fedora, Ubuntu,
and other distros, os-apply-config can not be installed with pip
install -U.  This change installs os-apply-config in a virtualenv
instead, so that it's in an isolated environment.  os-apply-config and
os-config-applier are symlinked under /usr/local/bin so that all calls
continue to work.

Change-Id: I50d7147cf74a36bbe7751d545c353ac354bdd189
Merge "Install os-apply-config in a virtualenv."
Handle distribute -> setuptools migration.

Running just 'pip install -U distribute' can leave setuptools in a
half migrated state on Fedora/RHEL/CentOS.  Following it up with 'pip
install -U setuptools' corrects the problem and leaves you with
distribute 0.7.3 and the latest setuptools.

Change-Id: I3652e84fcfdc39065b6b86fc85b6b6602601d7e9
Merge "Handle distribute -> setuptools migration."
Package with pbr

Uses pbr-0.5.20 glob support to install elements.

This packaging will facilitate tripleo-image-elements being
consumed by CI tooling, enabling tests which require customized
images.

Change-Id: Id0ce2f9954f487ef2375e51cc8287999b82396f2
Purge serial console after grub is installed

If we do this during install, then configurations written during
finalise.d will overwrite our changes. We need this element to work
so we can address problems with serial console handling in raring
cloud images.

Change-Id: I0880a9609686215732a33c852b41cbc703a72521
Related-bug: #1208912
Merge "Purge serial console after grub is installed"
Merge "Rename and fix os-collect-config config template"
Merge "Bootstrap os-collect-config during image build"
Update cfn-init-data path to match current Heat

Since April 2013 /var/lib/cloud/data has been deprecated.
Os-collect-config does not search that path, so this means
seed-stack-config is completely broken now that os-collect-config is
used instead of cfn-hup.

Change-Id: Ifb040f3d5e6d8326e13c1a25adb39dc7e5dc1a6c
Merge "Update cfn-init-data path to match current Heat"
Fix cleanup-keystone-tokens.sh to actually work

The user was not passed, which produced an auth denied message every
time the script was run.

Change-Id: I3c30a9a0e42a56942224f76747025c1048551f10
Merge "Fix cleanup-keystone-tokens.sh to actually work"
Switch heat-cfntools element from git to pip install

This will also be required for the os-*-config elements
as a prerequisite for images being built as part of the
tempest heat gate tests.

Change-Id: Ic0aa42a08dd189336d5ec390e4e96a160357263f
Install libz to make os-collect-config buildable

Some other -dev libs end up pulling it in, so this was not detectable
when things depended on os-collect-config. However, in order to compile
lxml we need libz-dev.

Change-Id: I8dd3a93b71b87e40977f85755ac2a56d6740399a
Allow for alternative grub config file

The grub config file passed into sed for the tty purge doesn't exist on
fedora, causing image builds to fail.

can't read /boot/grub/grub.cfg: No such file or directory

Change-Id: I015abba81bf67e2ed7c5a2876adeaef641a6cc3c
Merge "Allow for alternative grub config file"