Fix two bugs that both resulted in some courses not being displayed.

Also got test suites going again because these bugs really, really
needed to be in the test suites.
Merge branch 'testSuite' into dev
Fixed a bug where lowercase subjects were not found for issuing permission numbers; added logging.