Add Metrics to track statistics.

Implemented banIP() and getIPBans in CanaryServer.
Rename checkFolders() to checkDirs() in Constants.