Add client for Sampi's host event stream.

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>
Watch for new hosts.

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>
Add an "omnipresent" flag to Formation's ProcessType

This will specify that a job should be ran on all hosts.

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>
Omnipresence via f.rectify()

f.start, f.restart and f.stop have been updated to take a third
parameter representing the hostID, targetting a specific host.
If empty, it works like previously.

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>
Bootstrap new nodes with omnipresent processes.

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>
Add mock methods for SendHostEvents.

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>
Update to use the new method signatures.

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>
Add test for Omni mode.

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>
Run Rectify in a goroutine.

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>
Simplify hostCounts code.

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>
Fix the hostCounts calculation.

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>
Add an omniMtx.

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>
Bump Godeps.

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>
Expand Omni tests to cover downscaling and non-Omni jobs.

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>