[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.
Yes, it was wrong before. When clicking on raw view within deployment section we always want to have raw for that true, and the second one is for the attributes section and that depends on already set raw value or not.