Wiring for Internet of Things
I'm not sure of particular products or solutions, but I will say that hardwiring any of it is quickly becoming obsolete. Technology will advance which will downsize the products and make everything more convenient. Right now there are already the Belkin switches that fit in a regular switch box, connect over wifi and with existing electrical wires, and can be controlled through a phone instead of a desktop computer or  set interface.

As mentioned before, anything can be done if you throw enough money at it. But honestly, it's actually cheaper now-a-days to get the convenient stuff.

And back towards your example, that can all be done with programmable logic and some relays to create a whole home system that can be rewired at will without the need for any internet connection. Again though, this isn't exactly cheap.