cleaned up the post detail page and made things dryer and easier, fixes #31, fixes #17