Removed unnecessary functions creations. Removed code duplications

Conflicts:

	Src/api.js
Merge pull request #351 from stalniy/optimize-validation-group

Removed unnecessary functions creations in ko.validation.group