Move getDefaultRestTransportUri() to BaseConfiguration.

Allows reuse for graylog2-radio.
Improve rest_transport_uri default value for graylog2-radio.

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.

Related to #577.