Improve rest_transport_uri default value.

If not set, use the value of rest_listen_uri. Add exception if
rest_listen_uri is 0.0.0.0 to use the first non-loopback IPv4 address.
Merge pull request #560 from Graylog2/fix-557

Improve rest_transport_uri default value.