Fixed many bugs with refraction so it should actually work now. Updated to work with Xcode 5. Hacky fix for ray/sphere intersection.