adding logging for our IPC messages
Fix 'Malformed json'
adding more DVLOGs
should use the correct SiteInstance for new window

Fix #469
Merge pull request #472 from RobertLowe/master

[Fix] Malformed query when using `--remote-debugging-port` flag
[test] test case for #391
[test] fix some problem of test case.
[test] test case for loaded event

#469