Misc: Util: Use user's real $HOME with fallback to per-user temp (bnc#780973)

When making changes as a regular (non-hacluster) user, in some cases
the ownership/permissions of $HOME/.cache and $HOME/.config cause the
crm shell invocation to fail.  This fix uses the actual user's home
directory, or a specific per-user fallback temp dir if the case there's
no actual home directory.

Signed-off-by: Tim Serong <tserong@suse.com>
GUI: Constraints: Use !empty? instead of String#any? (ruby 1.9 support)

Signed-off-by: Tim Serong <tserong@suse.com>
Misc: Set sensible default $HOME in (bnc#780973)

Without doing this early on, bare crm invocations try to use
/root, which doesn't work.

Signed-off-by: Tim Serong <tserong@suse.com>
Misc: Primitive model: Use new lrmd_test for RA metadata if present

Signed-off-by: Tim Serong <tserong@suse.com>
Misc: CibObject: Handle emtpy cibadmin output when object doesn't exist

Signed-off-by: Tim Serong <tserong@suse.com>
Misc: Invoker: Handle new value of cib_NOTEXISTS (was -22, now -6)

Signed-off-by: Tim Serong <tserong@suse.com>
Misc: Cib model: Ignore 'ha' field from node state (dropped in pacemaker)

Signed-off-by: Tim Serong <tserong@suse.com>
Build: Fix build against Pacemaker 1.1.8 (some headers were changed/moved)

Signed-off-by: Tim Serong <tserong@suse.com>
GUI: Simulator: invoke crm_simulate with -S, not -R (fixes odd final state, bnc#781207)

Signed-off-by: Tim Serong <tserong@suse.com>
Merge branch 'master' into rails-3_2