Add the ability to set expiration dates on course modes.

We want to support this both so we can inform users when things are expiring and because we want to have course modes auto-shutoff when they expire.

@ormsbee @jbau