Make listen_url functionality a little more abstract.
Make listen_url functionality a little more abstract.

This will come in handy in the next commit, where I'll use this function
to connect remotely.

causes/buffet,causes/buffet