Refactor markup processing in preparation for supporting other formats

Change-Id: I0eb217064abc4f4b0f6bfbbc21302c470cc2f9c6
Add markup support for confluence, mediawiki, textile, trac, and twiki

Change-Id: I82ef161c6b6956c7b83cd4a1c37627beac6ea75b