More refactoring to models. Moved act_as_tree to page.rb