Light switches are going the way of sundials and typewriters. Soon, apps and sensors will have rendered them obsolete.