China and Japan are competing to invest in $1 trillion worth of mineral resources in the Philippines, shedding light behind Manila's Asia pivot.