[inspector_protocol] fix protocol compatibility check

The protocol compatibility check takes a very long time after the new
protocol version was cut in this commit:
crrev.com/f76af718608a77f211bf94e57cd408ac2c768761

The depth check, while hacky, allows us to compare the JSON structure
rather than nominal type checking which gives us benefits such as being
able to rename type names, which don't technically affect backwards
compatibility.

Bug:none
Change-Id: Ia64f14bbf39cccf52521aa211f8ca2ff1fba8736
TBR=pfeldman@chromium.org,chenwilliam@chromium.org
1 file changed