MarketState refactor

- Adapter can now offer MarketState access to the plugin
- A plugin can request the adapter to save/access plugin specific data
- Fixed unit tests