Inject buildNum into config

Closes #2431 

This adds a buildNum property to the config document on initalization. This should allow us to sort by buildNum in descending order to figure out which config doc to upgrade from.

It also sets the value of buildNum to Number.MAX_VALUE in development.