eliminate some code duplication by adding new Model class, add all classes/modules under top-level module
get tests running that had been skipped
add Model#document_index helper, closes #13