Add calendar exporter

Using the `courses` command with the `--export` option, the course schedule is exported as an iCalendar (.ics) file in the current directory.
Use `close` like this:

```
def export
  # stuff with `f`
ensure
  f.close
end