Fix change in authentication after coursera's change.

This patch (in minor massaged form) was taken by Rogério Brito from Suresh
Jayanty's gist at <https://gist.github.com/jetume/ac8142f104c8ae70b485>.

This fixes issue #74.