OM-31: way to read pending state

Added om.core/get-pending-state. Critical for avoiding race conditions
on important flags in highly interactive UIs. i.e. a flag that once set
everyone should be able to immediately read.