implemented common view for post's json representation (server)

get_history_msg uses this to save bandwidth
Merge branch 'master' into fix-history-transfer
removed Post.__type__ (will be implicitly added by .json) (server)
Merge pull request #77 from NoyaInRain/json-view

JSON view