Apple took several swipes at Google and Facebook at its biggest software event of the year