Split run_unit_tests.sh into components

Split run_unit_tests.sh into components to allow easy execution per
component being worked on.

Also made device side setup more tolerant to different number of devices
connected to the host.

Change-Id: I61fc304f48fb0a74de781494ee5f5daf80a7bf2c
9 files changed