Fix and enforce code style in Mods.Common, D2k, and TS.

Ok.