Refactor state

- State is now an object and not an array
- Everything is referenced by id

- Multi selection of tokens enabled!