Change so that VM is started when getting a job

* CONCEPT: VM should be powereddown while idleing and start on a job and stop after
the job. Still full of buggs.
* Rewritten some obvious DRY

Change-Id: I39762fadf24395a1ade6fe7b4fa0fdf2cf002a6c