Operads and knot spaces