Added missing version default value.

Also adds use of lodash where appropriate.
Further cleanup of package and gruntfile.