Add flatMap utility function.

I needed flatMap ability and I couldn't find any implementation in lodash...