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.
https://github.com/SUSE-Cloud/barclamp-pacemaker/commit/b6952bade51f368e6132178b91c9e20cb668fc1e