Fixing some prismContext-related NPEs.
Merge branch 'master' of https://github.com/Evolveum/midpoint
Implemented ref queries for assignments/targetRef.
Merge branch 'master' of https://github.com/Evolveum/midpoint