Moved post_path helper method to be accessible to the theme

This way, theme can only call post_path(post) and ecrire will handle the
transformation itself