support the 'magic' prefix defined in the newer spec of the procol

NOTE: last byte is the version, but clients don't have to care about
      compatibility and can just check for the equality of the whole magic
      (including the version byte).
      The server nodes implementing a newer version of the protocol will
      answer using the proper magic if queried by a client running
      an older version of the protocol which is still supported.