Move Folder.findRootFolder into folderService()

Reasoning: static method with GORM-access can be problematic with Transactions. And: refactoring helped debugging.
Refactored IndexType$DataType enum into its own class file to fix problems running this class in production.

(Error was:  java.lang.VerifyError on IndexType$DataType)