Support for cmi.core.lesson_location and assorted fixes