Bug fixes in data.DateTimeField, implementation of json method and tests.