feat(machine): Poll for IP address on heartbeat

* Refactor Machine into Machine and MachineState
* Refresh MachineState before pushing state to Registry

Fix #96