Fixed bug where tree selection of main model...

was not always correct, fixed null bug with no Gurobi license error.
Fixed some undo/redo bugs. Bug where equations added by redo or edit
after undo had no corresponding metabolites fixed, but there is now a
bug with used status - much less serious, but still needs to be fixed.