Adapter feature

Created an adapter to manage persistence (memory or rest) so it's not coupled with the store.