progress
added data mapper + registry for galleries, probably breaks tests. Need to move datamapper to separate abstract class if possible