Formatting support for dates in json (And added support for datetime-fields)

I've added an optional third argument to date-fields when returning a json structure. 

An example:
{json, [{my_date, erlang:now(), "H:i"}]}