Use grunt and bower packages as local dependencies. Close gh-1433.