Use lxc-attach to run commands inside container

Instead of using ssh/scp, we can use lxc-attach to attach to a running
container and execute a single command.

This means that we don't have to wait for the container to get an IP
address. Finding the IP address in a robust way seems non-trivial: the
script was looking at /var/lib/misc/dnsmasq.leases to determine it,
but that file does not exist when I run LXC on Debian.
Remove unnecessary chmod calls
Merge pull request #6 from mgeisler/lxc-simplify

LXC simplifications
zerovm-cli: add zerovm-cli jenkins scripts

I had to add back in the `get_ip` function in order to be able to scp
the test and coverage reports out of the container and publish them in
the jenkins job.
Merge pull request #7 from larsbutler/zerovm-cli

zerovm-cli: add zerovm-cli jenkins scripts
Fix pull request checkouts

For jobs which explicitly checkout a pull request branch, the reference
to the PR was not available, resulting in the following type of failure:

"""
git clone -b origin/pr/26/merge \
https://github.com/zerovm/validator.git /home/ubuntu/validator \
Cloning into '/home/ubuntu/validator'... \
warning: Remote branch origin/pr/26/merge not found in upstream \
origin, using HEAD instead
"""

This change properly configures the git clone ref specs so that PRs can
be checked out and tested.
validator: use autotools to build

This change expects validator to build via the standard autotools
procedure (autogen, configure, make, etc.).
Merge pull request #9 from larsbutler/fix-pr-checkouts

Fix pull request checkouts
Merge pull request #10 from larsbutler/validator-use-autotools

Validator: use autotools
buildenv.sh: remove use of lxc-attach

`lxc-attach` is not supported on our deployment platform (Ubuntu 12.04).
See https://help.ubuntu.com/lts/serverguide/lxc.html.
zerovm-cli: remove some redundant calls to get_ip
Remove all uses of lxc-attach

lxc-attach doesn't work on ubuntu, so we need an alternative
implementation.
buildenv.sh: fix a typo in an echo
validator/jenkins.sh: clean up comments
validator/jenkins.sh: genericize script use

This script can be used for pull request builds or nightly builds. For
nightly builds, simply set the PPA variable and the script will try to
publish a package--that's the only difference between a PR and a nightly
build.
jenkins.sh: generic jenkins script

For running everything. There are still project-specific scripts for the
individual builds, but this removes a lot of duplication.
Consolidate jenkins scripts

The jenkins scripts are all pretty generic, with the exception of the
zerovm-cli script, which must copy test reports out of the lxc before
continuing to the packaging phase.

This does not include toolchain; we don't even have a stable
compile/build status at the moment for toolchain, so this still needs a
lot of work.
Create generic package.sh script
Make package.sh generic
Merge pull request #11 from larsbutler/fix-all-the-things

Fix all the things