Rich JSDoc documentation for use by markdown-serve-docs

- middleware preParse can be specified as a function
- middleware handler function
- MarkdownServer.save()
- Updated test coverage for above features