separated out main() function from parser.leg

This will allow building of separate multimarkdown and multimarkdown-devel packages.  Changes to the Makefile to support package building and a spec file will be included in a separate commit.

The test suite passes with the same single failure on lists as occurs on the upstream version.