Get rid of deprecation warning in def like_json().

Rewrite queries in like_json() to get rid of
"DEPRECATION WARNING" in PostController.
Merge pull request #72 from h5b/post_controller

Get rid of deprecation warning in def like_json().