Added Repository Repository Factories

Have completed tests for and created RepositoryFactories using
patterns learned from http://www.pluralsight.com.