Making Smart Buildings and Personal Systems Cooperate via Knowledge Base Overlays