Make project id return as string for sentry compatibility
This PR updates the project ID datatype to str to make it compatible with Sentry, especially for the Grafana plugin integration. I used the work made in !1176 (merged) by @cinemast and simply added a test.
fixes #341 (closed)