Fixes #4706: Correct missing promise writting date serialisation

When changing the cache logic, I broke the writen date serialisation logic (which was silently ignore). 
Adding it back leads to correct promise generation when technique library is updated. 
It is trivially done by adding to Lift JSON the hint about how to serialize/deserialize Datetime objects.