Silence some stupid syntax errors.
Fix up intent handling, and add some utility functions.

This intergrates knowledge intents more deeply into the CI state
machine -- current_states will take intents into account in
determining  what is and is not an active state in the state machine.

This also adds a few useful utility functions for dealing with
intents from the CLI.
Merge pull request #1684 from rhafer/rhafer-barclamp_install

Merged by devtool for cloudedge
Fix up build process to make sure build_sledgehammer honors --wild-cache
barclamp_install.rb new option: --no-rsync

To be used during package build (together with --no-chef, --no-migrations) to
avoid duplicating all the barclamps file into /opt/dell/barclamps/$name.
Note: crowbar.yml is still created in /opt/dell/barclamps/$name, as other tools
expect it to be present there.
barclamp_install: Use barclamp name as destination directory

Instead of using the base name of the source directory as the destination in
/opt/dell/barclamps, use the name that is extracted from crowbar.yml.
seed-barclamp-packages: Dependencies on other barclamps are add at build time nowadays
Packaging: Use barcamp_install to layout files during build

This makes use of the latest additions to barclamp_install.rb (--no-rsync,
...). The spec file template should also be in better sync now with the latest
manual changes to our spec files.