Block/unblock remove- commands and tests.
Bring in new juju testing.
Replace the asserts.
Use jc.IsTrue and jc.IsFalse
Don't fail horribly if not a state server.
Merge master.
Block operation before validating it. Remove redundant tests.
Remove the import.
Move the job start to the api server part.
Made error msg explicit and cleaned up some tsts.
Merge pull request #1219 from howbazaar/jc-errorisnil

Update testing dependency and use jc.ErrorIsNil

Replaced all occurrences of
    c.Assert(err, gc.IsNil)
with
    c.Assert(err, jc.ErrorIsNil)

Also replaced `c.Check` variants.

While I was making such a massive change, I also changed:
     gc.Equals, true)
to
     jc.IsTrue)

and
    gc.Equals, false)
to
    jc.IsFalse)

(Review request: http://reviews.vapour.ws/r/528/)
Merge pull request #1220 from howbazaar/fix-system-identity-writer

Don't fail horribly if not a state server.

The agent code still fails, but with a specific error code if it is missing.
The call site is then able to be intelligent.

(Review request: http://reviews.vapour.ws/r/529/)
Added tests to check msg is logged. Cleaned up comments, renamed method for clarity and removed redundant tests.
Organised imports.
Block/unblock remove- commands and tests.
Block operation before validating it. Remove redundant tests.
Made error msg explicit and cleaned up some tsts.
Added tests to check msg is logged. Cleaned up comments, renamed method for clarity and removed redundant tests.
Organised imports.
jc,ErrorIsNil updates and merge conflict resolution.