Don't require =head1 to be at beginning of file in tests

The POD header test's regex now uses the /m switch, so the =head1
declaration can occur at the beginning of any line, not just at the
beginning of the file.
Reimplement POD parser using PPI
Reimplement plaintext parser using Pod::Simple::Text