envsetup: Wait for device in installboot/installrecovery

 * Useful when you're racing against a bug that causes a kernel panic
   shortly after USB turns on :(

Change-Id: I2a503e4b195e632ed5b67a77b942e80c47d0ff45
envsetup: Use wait-for-online so these cmds work in recovery

Change-Id: I7a85e7068f373b1d726aa6b27a51862fa9b7c6fd
build: fix bash completion sourcing

Sourcing functions in files from a function within a file being
sourced was giving bash a hard time. This fixes 'repo' command tab
completions.

Change-Id: Iac1b3078e20749fb474ed1270e0886cf435e24d9

Conflicts:
	envsetup.sh
Fix SDK build

Adjust PRODUCT_PACKAGES and PRODUCT_COPY_FILES to fix the following SDK
build.

$ . build/envsetup.sh
$ lunch sdk-eng
$ make sdk

Change-Id: I299e97b7935f9eb01820497342675cfd7ef794e9