rename MachineEnvironmentWorker, extract duplicated implementation from Uniter

...and as a driveby fix all the jujud tests that were cheerfully trying to write made-up proxy settings for the ubuntu user all the time.

(Review request: http://reviews.vapour.ws/r/593/)