Adds preview functionality to new posts and topics

This PR implements issue #58.

It adds preview functionality to the new_post and new_topic pages.