Representation homology and knot contact homology