The M-theory S-matrix