Add API to get whether the devtools is opened.

Will try to get this merged to upstream when we finally updated to
Chrome30 and used the lastest brightray.