adapt example to markdown
render methods now return sinatra response instead of just the body
set proper content-type response header in different render methods