John 1:18 is not Jesus' speech. Neither is the beginning of chapter of john 1.
As for John 8:58, you have a problem. Names are usually not translated, but this "I am" you find it translated in the Bible. Supposing it was a proper noun, which it isn't, in the above-mentioned verse you would have to choose, is it a name of your God or is it Jesus saying "I am"?
John 10:34-36
"Jesus replied, “It is written in your own Scriptures that God said to certain leaders of the people, ‘I say, you are gods!’
And you know that the Scriptures cannot be altered. So if those people who received God’s message were called ‘gods,’ why do you call it blasphemy when I say, ‘I am the Son of God’? After all, the Father set me apart and sent me into the world."
5:20 must by any logic be taken to mean God, not Jesus (peace be upon him).
Revelation 1:17-18 is a vision, a dream. If you read the rest of the verses, you see some pretty crazy stuff there. Just like you would if any person wrote down to you the previous dream they saw.