Added global function that automatically adds form validation

This function searches for form tag with attribute data-linz-validation="true".

@smebberson This is ready for review.