Making the timeout to wait for a yellow cluster state configurable.

Expects to be configured in milliseconds, defaulting to 5000.

Fixes #593, #171.
Merge branch 'master' of github.com:Graylog2/graylog2-server