Replaced repository with generic accessor

Since the concept of an accessor is just a repository, I refactored this
to have the unit of work manage the resource accessor