Allow host preference for array of hosts

If options.hostPreference is set, choose the host correlating to the
element in the host array specified. If
Test script to show this working
Merge pull request #179 from chriswiggins/master

Add option to choose which host in a host array is chosen first