Example window updates

Added live saving to editing in example window. Example window now can
create new examples, delete existing with Delete key.
Delete key now deletes functions in main function list.
Started shifting global variables into variables class for easier
cross-form use.