Add Datetime/Date type for escape.json_encode

Datetime/Date type convert into JSON is so common that every programmers had to write a patch for Tornado which is violate D.R.Y.

p.s. #939