Rotherham United have brought former captain Pablo Mills back to the club on a contract until the end of January.