Move remaining URL generation functions to connector class.

Note that a connector is being passed around in a few places that seem
a bit clunky. In these cases it is just a stopgap until the code that
uses the URLs is moved to the connector as well.
Move translation polling code to connector.

This also changes the connector to be specific to a single job, which
should lead to a cleaner interface (less arguments to pass around when
invoking the connector).
fix some minor code style issues