Fix bug when -b is specified and groups need to be created/modified.

Steps to reproduce:
```
$ sudo enter-chroot -n precise -u 0 groupdel hwaudio
Entering /usr/local/chroots/precise...
Unmounting /usr/local/chroots/precise...
$ sudo enter-chroot -n precise -b sleep 1
Entering /usr/local/chroots/precise...
Creating hwaudio group with GID 18...
wait: 476: Illegal number:
Unmounting /usr/local/chroots/precise...
```

 - env is only redefined after groups ID are checked
 - We do not want to silently ignore errors, so moving env redefinition earlier is not a good option
 - We fix the problem by checking if $pid is non-empty (should be safe in all cases)
Wrap sh to propagate set options more consistently.
Fix creating encrypted chroots. Fixes #517
Revert "Inline target meta-test.": Test needs manual checking and is not easy to automate in a sane way.

This reverts commit c2aa7da4a163d9475b198018685228f26297563f.
targets/audio: Allow overriding of ADHD_HEAD (for automated testing).
test/30-audio: Test other ADHD branches (compile-only).
targets/audio: Fix error handling:
 - local VAR="`false`" eats the return status: local declaration must be separated from assignment.
 - function calls in backticks are not called with `-e` in bash: explicitely call return
audio: Put 32/64 compatibility definitions in separate header file; Fix for >=stabilize-5062.
14-background: Test if groups can be modified/created when -b is specified.
Pick up default mirror from environment variables `CROUTON_MIRROR_<distro>[_<arch>]`.

This is mainly useful in the context of automated testing, so these variables can be set to a local mirror.

Can also be set by the user, but then `sudo -E` must be used to run crouton to make sure these variables get passed to the installer.
tests/14-background: remove rc.local instead of making a backup copy of it.
Merge branch 'fix_main.sh_T' of https://github.com/drinkcat/chroagh
Merge branch 'fix_group_chrootcmd' of https://github.com/drinkcat/chroagh
Merge branch 'mirror_env' of https://github.com/drinkcat/chroagh
Merge branch '14background-remove-rclocal' of https://github.com/drinkcat/chroagh
Merge branch 'audio_test_branches' of https://github.com/drinkcat/chroagh
Fix running tests without the core target specified.
core: add wget and ca-certificates