Cleanup and simplification
Removes unused duplicate storyline file uploads for child lessons.
Fixes many code style offenses, in several cases refactoring to fix underlying causes.
Fixes potential security issue in which a user could set arbitrary session values with specially crafted language preference parameters.