JS api call reorganized
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