Fixed most integration tests

I got rid of quite a few race conditions in the integration tests themselves. The only problems in the server is that is seems to send `:indexer-ready` too soon, and it sends a `:full-typecheck-finished` at startup which should probably be skipped. Other than that the ensime-debug test still needs to be fixed.