Remove 10_setupvars.rake, this is handled by config now
Rename to 20_setupextravars to load_extras, since that's all it does now
Build.rake is now only the build from params rake task

All the other facilities are done by Pkg::Config.

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>
Remove template.rake, this functionality  is now provided by the tar lib
Fix ordering problem in loading of variables

This commit updates the ordering of loading data into Pkg::Config. The prescribed order is:

1) Load default values we establish in the packaging repo

2) Load values set withing the project_data.yaml and build_defaults.yaml files

3) Load versioning data obtained via `git`

4) Load override data obtained via ENV['PARAMS_FILE']

5) Load data obtained via environment varialbes

6) Load data obtained by assigning old variable values to their new counterparts

This order reflects precedence via ordering - the things loaded last override
the things loaded first.

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>
Only require the rpm tool if we know we're on an rpm system
Update templates to use Pkg::Config object
Move project root setting into defaults, and don't allow its override

since it's a default, it belongs in the load_defaults method. Also, it is
absolutely essential that the overrides do not override the project_root
setting, because this is environment-specific, and any value in a params file
is going to be wrong. Thus, if we have a project root before we begin
overriding, we save it and restore it after overrides.

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>
Require benchmark in util.rb, since its a util. Not really sure it goes here.