Machiner uses the API only
Changes after review
[r=dimitern] worker/machiner: Use the API instead of state

With this change, the machiner worker becomes
the first one to use the API exclusively.
There are still some usage of the state
package, but only inside the tests.

https://codereview.appspot.com/11666047/

R=gz, rogpeppe