RNN framework

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