Updated scripts, scripting api, moved script text formatting to separate thread from gui and updated connection wizard.