Markdown Docs support

markdown functionality added.

please see notes in commit messages for details of what each commit does, particularly the last commit, which gives example SQL statements to add markdown category and pages to database.