moved markdown to post.rb

Removed application helper and added private post method.