Mass. agency sets out to bridge the "last mile" with grants