[tool] fix build native node cause error on cygwin
[tool] make script runnable on linux
adding logging for our IPC messages
Fix 'Malformed json'
adding more DVLOGs
should use the correct SiteInstance for new window

Fix #469
[test] test case for #391
[test] fix some problem of test case.
[test] test case for loaded event

#469
[test] test case for `new-instance` in window