Kudos on your persistence.
For future, loosen the pipe while the old water pump is still installed on the block. Then, you don't have to wrestle with it when it is out.
For the leak, make sure the t-stat is seated correctly in the groove. There is a very shallow grove where the t-stat goes, and if there is goop still left there (in the bottom), the t-stat has a tendency to slip out just enough, so that the t-stat housing does not make complete contact with the block. A little dab of RTV helps hold the t-stat until you tighten the two bolts.
Good luck .. Maz