move date formatting from server side to javascript, so we can reuse Sugar's i18n

Right now, we have a proper i18n relative date ("10 minutes ago") formatter in Sugar, but not on the server side. In post history versions serializer, we currently format a "description" on the server side, let's move the date formatting to client side and reuse the i18n formatter.