Merge pull request #1267 from kingFighter/crash_dump_test

[test] fix crashBrowser case
rename capturepagedone to __nw_capturepagedone
implement Window.cookies.get
implement Window.cookie.getAll
Fix debug build: ClearCache() should return
Allow wait in nw method handlers
bump version to 0.8.1-rc1
APIContext for cookies API
Cookie API: Use req id to match call and callback
CookieAPI: remove, set and refactoring
Cookie API: cookies.onChanged.addListener and removeListener
API impl refactor: Id allocation and global object register in browser

This is mainly for dealing with Window in new renderer process, where
multiple dispatcher hosts should share the same object registry. And
the Id allocation on the renderer side is moved to the browser side to
keep the id global across multiple renderers.
[test] Update test case for snapshot