Add default parameter to OC\AllConfig/OCP\IConfig's getValue's

Makes the public config interface a bit more usable.

Would like to use this as part of the fix for #6322

cc @PVince81 @karlitschek @DeepDiver1975