A Survey of Communications and Networking Technologies for Energy Management in Buildings and Home Automation. (6th March 2012)