Embedded Contact Knot Homology And A Surgery Formula