Re-implement rails' distance_of_time_in_words method in php. Fixes #166.