Add config implementation and tests

Add the ability to read from a json configuration file. Currently
supports reading in database details.