A shorter conference version of this paper appeared at ICLR 2017, which is linked to below.