WIP commit of a mostly complete parameter averaging scheme for DeepBeliefNetworks. Needs a unit test.