QPR capped a hectic transfer deadline day with the signing of midfielder Andros Townsend on loan from Tottenham.