Start with extraction of post-create function

Start with extraction of post-create function from function
create-posts, this function should be configurable to biggest
possible extent, to reuse it every place where post rendering
(post side, post preview div) is needed.