City and smart building management systems