Restructured code for easier use by clients. Implemented first iteration of repository manager/store/factory classes.