move server post detail render to lib/post.js.
move nunjucks init to lib/build.js.
added smoke test for post detail renderer.