Smarter cities are capitalizing on new technologies and their diminishing costs to create a ubiquitous network of connected devices.