Register peers by writing to local management port.

This means that only the GET /nodes/_all_docs request needs to be
performed via the public interface, so we're free to lock down the
rest of the management functionality in nginx.