RNN framework for pylearn2

@vdumoulin is going to review this with @jych.
This is on working progress.