The famously baffling metropolis is home to an experiment in ubiquitous computing that could transform the city