Configurable apt-get behavior.

For:
https://bugs.launchpad.net/juju-core/+bug/1322302
https://bugs.launchpad.net/juju-core/+bug/1350493
Yipes! Obviated by some table-driven tests, removed.