Code cleanup

Switch to Perl to merge Markdown files before handing them over to Pandoc
Make sure all files use spaces, not tabs
Clean up insertion of horizontal lines between sections
Update README to reflect changed build dependencies