Adding ajax hijacking and handling for markdown previews. Relates to #1.