Added validate option to lineinfile

The validate option is constructed similarly to the template command's
validate option. TestRunner.py has been updated to include two new
tests, one for passing and one for failing validation.
Merge pull request #4380 from joshkehn/lineinfile_validate

Added validate option to lineinfile