Added megacheck linter and fixed new linting errors
I noticed this linter in the GRPC codebase and wondered what it would find in ours.
Turns out quite a lot, particularly unused code. Might be worth adding this into our build.
Edited by GitLab Release Tools Bot