Make startParsoidServer async, so it can wait until the server has started.

Right now the "detection" is just waiting 2 seconds.

Change-Id: Ie6ed56194f3b81785d149cd7173aa32a4edd62e5