Markitup review

This is probably ready for review and additional testing. Works for me on mysql, postgres and sqlite locally.

Also hopefully closes #19 .