Updated for WFM v3.1.13

Snapshot stability (is_finished) to avoid conflicts with other queries.
Also added a new role mining query to provide better performance and
more detailed result data.