Aligning barcode config format with barcode generator.

Broke up tests
Remove getDefaultMongoCollection from the NSPrefs interface. It is an implementation detail.