move scriptapi to separate folder
Add missing header after rebase