Fix conversion of per node stonith parameters

This converts the per node stonith parameters from Chef::Node::Attribute to a
"normal" ruby hash when stripping the domain from the node names. It seems
assigning a hash of Chef::Node::Attribute objects to the node attributes
doesn't work. When accessing the values later on (in pacemaker::stonith) they
just evaluated to nil.

https://bugzilla.novell.com/show_bug.cgi?id=887244
Fix extraction of stonith parameter from parameter string

Pacemaker::Resource.extract_hash() is written to extract things from a complete
CIB object definition. Therefore it rightfully expects whitespaces before the
data_type ("params" in this case). So we just add those here to make the string
parsable by extract_hash.

https://bugzilla.novell.com/show_bug.cgi?id=887244
Merge pull request #121 from rhafer/per_node_stonith

Per node stonith config
Fix javascript after barclamp-crowbar change

https://github.com/crowbar/barclamp-crowbar/pull/1091 exposes a bug in
the javascript where we don't specify the default value of a json
attribute we try to read and that doesn't initially exist.
Merge pull request #122 from vuntz/fix-js

Fix javascript after barclamp-crowbar change
Properly escape the per-node STONITH parameters

https://bugzilla.novell.com/show_bug.cgi?id=888637
Merge pull request #124 from vuntz/escape-per-node

Properly escape the per-node STONITH parameters
Fix validation of SBD devices when none is specified

https://bugzilla.novell.com/show_bug.cgi?id=888060
webui: Do not save empty sbd device if there's a trailing , or space
Merge pull request #123 from vuntz/fix-validation-sbd

Fix validation of SBD devices when none is specified