Fix duration and summary issues in ics generation

Times in js seem to be in seconds, ics generation thought they where minutes.
\r was not replaced in summary leading to surplus newlines in ics.