Moved global constants into class constants and updated all references

This PR fixes up all the global constants for the File\* classes.

All unit tests and code sniffing is clean.