duplicate key value JDBC exception when indexing large Mercurial repo

fixes #683
make -post-compile-test pre-requisite for running single test file

fixes #686
need more careful checking of repositories.zip in order to avoid generating it every time single test is run
let sendToConfigHost body use the parameter "env" to keep align with its signature and other methods
Merge pull request #692 from sorra/patch-1

let sendToConfigHost body use the parameter "env" to keep align with its signature and other methods