Base state

Refactor state, add an option to run single instance of Centrifuge using in-memory state storage.