The Signature Method, Kernels, and Applications to Machine Learning