FileType is injected into hibernate configuration, instead of using static fields.

This means FileType is no longer a singleton, and can be used properly.