Add offline test mode / config flag

This pull implements
1. A offline flag as described here [T76885](https://phabricator.wikimedia.org/T76885)
2. It also moves the config loading code to rbUtil.js


I don't think this is needed. There is already conf loading code in server.js, and lib/server.js sets up defaults.