added callback filters and also FIXED A BUG with fromJson/toJson which automatically convert date to ISO and causes fail on $writeFilters