The Trinity of IoT Ecosystems: Smart Buildings, Smart Infrastructure and Smart Security Solutions