refactor(config): avoid clobbering exisiting grunt config
refactor(api): create an api rather than doing all the things on load