Jasmine tests of validation utility

This includes a modification of the validation utility which has it perform min and max length checks on optional fields. Originally, an optional field could exceed its maximum character limit, and fall below its minimum character limit - only email validation was performed.

@AlasdairSwan and/or @wedaly, how's it look?
I think the src folder is too generic a name and runs the risk of becoming a dumping ground for all JS files. Let's create a new folder called utils at the same level and add those two files there. I have created a story to track this ECOM-618