IPv6 support in core

  Needs review.
  Master (php socket) and slave and backend listens to IPv6.