Split /update in /update + /generate; filename handled

Clearer separation of data and its representation of datetime objects in
db: now the db only handles datetime objects and the server will take
care of converting from/to strings with the browser
Add endtime in countclock