Move config/defaults logic into own module

Fixes data route, which was only using defaults, not config file
from command line.

Change-Id: I5cbffa5c2bd51ec49586866ad7d99dd45c338221