Surrey loanee James Taylor struck the winning runs against Gloucestershire after 10 wickets on debut