refactored dynamic validation to use lazy.js
refactored all loops to lazy in validation directive
adding promise api q dependency for asynchronous validation