Added modular main frame, logging in main frame and support for scripts to display swing forms on the main frame.