Moving code to shared_core and shared_ui.
Improved scripts: removed imports and restricted available packages in scripting for faster loading.
Improving scripting (doing imports as late as possible).