Added time ago function to common
Added code to insert time_ago key into the result array when outputting data