Add once to Utils

add once functionality to utils. Inspired by underscore/lodash.