More work on #15, cleaned up code and updated tests to cover AsciiDoc
file containing JBake metadata.