Add utility class for reading config

Allows defaults to be specified and limited typing to be used.