A dramatic stoppage-time winner has propelled Hull City into the Premier League, beating Middlesbrough 1-0 in the Championship play-off final.