extracted repositories to a separate module. removed any dependency on rep.layer from rest.layer.

extracted repositories to a separate module. removed any dependency on rep.layer from rest.layer.
Perhaps we should move this to an implementation, rather than an abstraction. Plus read-only methods like findUser aren't transactionals.