Intrinsic motivation and mental replay enable efficient online adaptation in stochastic recurrent networks. (January 2019)