The Neurothermostat: Predictive Optimal Control of Residential Heating Systems