Add parameter to configure number of threads used in device operations

Some platforms may not be able to support a large number of concurrent
device operations. Set 'android.deviceThreads' to limit the number
threads available in the thread pool. By default the thread pool size
is based on the number of attached devices.
Merge pull request #304 from royclarkson/deviceThreads

Add parameter to configure number of threads used in device operations