Misc: Cib model: Convert resource instance state from array to hash

This'll allow us to carry extra per-node information around for
resources (e.g.: substate of starting, stopping, etc. for pending
resources)

Signed-off-by: Tim Serong <tserong@suse.com>
GUI: Status: Differentiate pending states (fate#314385)

Signed-off-by: Tim Serong <tserong@suse.com>