Fix AP mode can't access local httpserver.

Change-Id: Ib8c4705ba179a0a48ec6eebdd924036621142656
Cache: Check for a new version every time a page is loaded

Signed-off-by: Bao Zhen <bz@infthink.com>
Adjust SNTP request cycle for Matchstick.

Add one preferred SNTP server which should be used with the highest priority.
It may be changed later.

Change-Id: I554bde25cf53752d717db44078c86132a06ae958
Signed-off-by: Jianmin Zhou <toandrew@infthink.com>
workaround: resend sntp request when SNTP server no response.

Change-Id: If45ca85bb4ce24e8139e149015168a5ff4828e4b
Allow scripts to close windows for Matchstick receiver app

Signed-off-by: Bao Zhen <bz@infthink.com>

Conflicts:

	b2g/app/b2g.js
Allow insecure websocket from HTTPS

Matchstick receiver app need access localhost websocket.

Signed-off-by: Bao Zhen <bz@infthink.com>
Disable CSP check by default.

Signed-off-by: Bao Zhen <bz@infthink.com>

Conflicts:

	b2g/app/b2g.js
Dump http transaction log into logcat.

Signed-off-by: Yunchao Chen <chenyc@infthink.com>
Enable the webcrypto API for Matchstick

Signed-off-by: Bao Zhen <bz@infthink.com>