Improve process instance state assertions in JbpmJUnitBaseTestCase

Add assertion methods which rely on AuditService and work with actual process instance state.
Rewrite tests to use these methods instead of the old ones if persistence is enabled.

(cherry picked from commit 88e5316c96cbc13ee923fa0b4c23257cfb5fdc20)
Restore deprecated assertion methods in JbpmJUnitBaseTestCase

(cherry picked from commit 32395f273eb6ff81095b13aae224a2a4e9027a55)
BZ-1173505 - TaskSummary retrieved using the EJB interface does not have information about potential and current owner

(cherry picked from commit f7c886606a46ce30814806bd191f883ea5bb45df)
BZ-1174880 - Security based filtering for process instance causes empty view
changed security constraints filtering for process instances to avoid empty results in case users do not have access to first page of the result set

(cherry picked from commit af751df1cb0b5be41fecc2302dda5a5c5d626d12)
BZ-1173609 - EJB runtimeDataService.getProcessInstancesByProcessName may return unwanted instances if prefix in name is the same

(cherry picked from commit 5e19378827c4fbee61f8f4f20c63624aed08a4f9)