Add facility infrastructure
Add state reader and state writer facility