Allow non-uppercase-statics by default

I think of this as a stylistic opinion which shouldn't necessarily be enforced
by default on all users of rust, but that's just my opinion.
Clean up various warnings throughout the codebase
Purge the last remnants of the old TLS api

Closes #3273