Extracted css for markdown editor and preview

Fixed a few display bug for markdown and extracted css to allow
designer to work on it directly if required.

This fixes #467 and #454