fix sunspot solr in travis

in travis sometimes the tests fail because solr is not responding. We
believe this is a timeout thing.

This commit adds a script that waits for solr to respond and this is run
before the tests.