cfengine_stdlib.cf: abstract apt-get, aptitude, and dpkg calls

The calls will always have the right Debian environment, especially the PATH.

This depends on the feature/bug we have of executing common bundles that are not in the `bundlesequence`.

Suggested by @neilhwatson and refactored a bit.

Please test, do not merge until at least one confirmed test case.