Major refactoring of slide.js using lesson factory and directive.