Fix multiple build tasks
Fix script order in build, move files around to make it easier
Reorganize libs and core script files in different directories