Moved top_post function to models.py and removed last_query_time from this function
Moved permalink_post function to models.py
Added add_comment_for_post and get_comments_for_post
moved edit post logic to separate function and fixed bug that after edit post was not updated in memcache
moved remove post  logic to separate function