Three goals in a frantic final 10 minutes saw Middlesbrough beat Blackpool 2-1 to go top of the Sky Bet Championship.