Feature/resource

Implementation of new Resource class with a ResourceStore that ties together data layer and cryptographic functions.