Fix indentation of exported YAML

When exporting a barclamp that only used the default values from the template
(added_attrs.empty?) the "attributes:" key in the generated YAML was not
correctly indented.
Merge pull request #1156 from rhafer/batch

Fix indentation of exported YAML
Updated dependencies

In order to move the SUSE packaging to the open build service and to
update easy with some security fixes i have made the version constraints
much simpler
Not so hard version constraints

As we do not hardly rely on fixed version constraints i have set them a
little more less to minor version changes.
Updated to rails 4
Removed fucked up conditions for ruby > 1.8 compat
Replaced functionality to get rails 4 working
Removed issues while rails upgrade
Update routes syntax to match rails 4 style
Remove sprockets env rspec helper
Update spec helper to new rspec syntax
class_inheritable_accessor is now class_attribute
Remove reference to AppConfig and replace with YAML + Hashie
Fix rspec deprecation warnings
Replace old JS/CSS asset helpers with rails 4 equivalents
Add a wildcard catch all route
Removed old script folder, not used anymore for rails 4
Fix missed javascript_tag
Fix status checks in machine controller specs
Make format optional in routes