Derby have signed Tottenham midfielder Simon Dawkins on a permanent deal following a successful loan spell.