Extract redis and disk writing to gobatsd itself; prep work for further refinement