Changed load chain with ios optimizations. All haku-specific scripts are now loaded with require.