Fixing dependencies for PreferenceLoader
Adding setter for ID in Preference entity
Updating PreferenceLoader tests so they are not container aware
Removing unused "use" statement