[WIP] Rails 4 upgrade

Just some fixes that are included for the rails 4 update at https://github.com/crowbar/barclamp-crowbar/pull/1157 for getting feedback.
I have added a default value of 1000 now. Ordering alphabetically won't work as we have only the translation keys at this point.