Refactoring meta data. Fix autoslugfield and treemodel.