Fix compatibility with solr 4

Remove waitFlush parameter. Fixes #34.
Also fixes a minor bug where the wrong service was being returned.
Merge pull request #60 from ss23/fix_solr_4

Fix compatibility with solr 4