IoT and other smart technologies offer cities the potential to save money while improving the lives of their residents.