CIDEVSTC-187: Support for M155 DELETED lcs, visibility etc

Also provides:
- refactoring for RETIRED vs DELETED lcs
- refactoring of RR2
- enhanced discovery service (order by, event queries)

Merge only after submodules are merged and updated