DokuWiki writer:  Handle table cell alignments.

Closes #1566.
DokuWiki writer:  Make tables prettier by aligning columns.

Also cleaned up crufty code and added tests.