On The Control Of Electric Vehicle Charging In The Smart Grid