Refactor lcstate CIDEVCOI-667

DO NOT MERGE YET.

This brings the lcstate refactoring to coi-service. Here, mostly tests were changed to reflect the split of lcstate into two attributes.

At the same time RETIRED state resources are not shown anymore in any find_resources results (other than find for RETIRED state). This had no impact on any tests.