Add redis caching for notebook output

Also introduce yaml based config