Unsupervised Control: Efficient Inference for Time Series Modelling and Intrinsic Motivation