Extract out the formula manager into a separate class called Shaker.

Sym did most of this work already in is UCC-deploy repo, I've (Ash) just
copied the strucutre and functions for the updated version here.