Refactor lcstate CIDEVCOI-667

DO NOT MERGE YET.

This is a candidate preview for the upcoming lcstate refactor.
- Split Resource.lcstate into lcstate and availability
- Simplify datastore views
- Removed state aliases
- Generalized treatment of retired

This PR also removes the outdated early datastore refactor attempt.