Primarily FastAPI and Pydantic to v2. Also ruff to latest. Updated some code to support Pydantic v2
Closes #4