Red card drama at Tannadice as United see off Thistle