Fixes a bug in how traindb was determining the maximum number of functions in a loco.
Adds the production traindb to the new CS implementation.
Instantiates a bunch of trains in the panda CS.
moves the dccmode enum to traindb.hxx
Adds unittest for traindb.