Clean up moai sample to use nsurl instead of curl