A third-party agnostic, extensible state-handler