ci: add proper CI workflow and pre-commit config
- Added GitHub Actions CI workflow for PRs
- Added pre-commit configuration (requires pre-commit install)
- CI runs: cargo fmt, build, clippy, and tests
- This will prevent broken code from being merged