added service layer components, added service factory, updated repo factory, added service unit tests