Move state dicts to a State object

All the state dictionnaries and methods are now abstracted into the
State object

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>