factored out building of dependencies for main db
added some integration tests for author merging
Merge pull request #27 from montaggroup/maindb_constructor_cleanup

Maindb constructor cleanup