Fixed bug on auto parsing date from JSON: the database configured format was't used and both DATE and DATETIME used the dateformat of DATETIME.
Fixed problem on receiving a date from JSON. Now the new formatting parameter dateAsLong allows to export dates and datetimes properties as long. This speeds up database export/import and let to have the maximum precision even if the datetime settings aren't (like by default that ignore milliseconds)