Metadata refactor about done. Initial permissions GUI work.