An operating system turns a building into a smart phone, complete with apps to run systems.