<application.rb> Add more sensible ENV:* handling

Instead of factoring out the add_connection logic, this ENV:* handler
fixes the subscribers instead. All ENV:xyz subscriptions that aren't
ENV:* are deleted from the subscriber first, then all the ENV:xyz
connections in the publishers hash are added to the ENV:*
subscriber. This should prevent hooks from running twice and keeps the
logic in the elaborate function where it belongs.