Electric Vehicles, Smart Grid and the Internet of Things