Cobordisms with chronologies and a generalisation of the Khovanov complex