Split hash prep off into library file, added basic hooks.
Fleshed out acts_as_tree, basic, but functional now.