Add dependencies.json and dependency checking for grunt build