Cache flows in production and by config switch

Adopts a similar pattern used in the existing ```SmartAnswer::FlowRegistry```
class whereby production defaults to caching flows and options passed to
registry control the caching of flows.