Various fixes for issues found while developing integration tests (OMS-167)
Fix state update (OMS-198)
Merge pull request #22 from opennode/oms-198

Fix state update (OMS-198)
Merge pull request #24 from opennode/oms-167

Various fixes for issues found while developing integration tests (OMS-1...