Spliting selector into functional and object based versions.

Also removed lodash dependencies, they were making the filesize huge.