Added -threads option to ktest.
Added GappaServer and test for it.