use inheritance for mapping models and get appended path
Merge branch 'devel/refactor' of https://github.com/ekzhu/xcurator into devel/refactor