decoupled the storage layer from the daemon itself

implemented a simple memory storage using this new layer

rest and filesystem will be the next ones