add new LibraryManager class

move library management methods from TrainSimulatorMain to
LibraryManager

use LibraryManager to access and update car and vehicle libraries