Fixing visual appearance of line dialog.
Refactoring of some model code + adding line selection model.
Further works on the timetable manager.