Merge changes from topic "wait-for-staged-session"

* changes:
  Merge get-stagedsessions with `pm list` and improve on it
  Add flag for staged session to get ready during installation