refactor grunt/npm for development outside public php directory