Added markdown rendering
modularized the md rendering engine and cleaned up app.js