Extract config.json handling code out to separate modules too. Change-type: patch Signed-off-by: Cameron Diver <cameron@resin.io>