[Scripts] Moved the script library out of bindings and fixed up references