On-demand host lookup.

Suite host lookup is not done unless needed for a remote task, and then
it is only done once, for the first remote task, in the job submission
thread.  Contact env file write (which require suite host id) also moved to the same place in task.py.

Addresses #358