Fix tests incompatible with latest WebSocket spec.

[Issue#]   265
[Problem]  Failing TCT tests.
[Cause]    The tests call WebSocket.close() and expect to get an
           onmessage event after the call and before the
           connection is closed. This can not happen according to
           the WebSocket spec.

           There are two important points:

           The first point is what WebSocket.close() is supposed
           to do:
           http://www.w3.org/TR/websockets/#dom-websocket-close

           3. -> Otherwise section applies in all tests:
           "Set the readyState attribute's value to CLOSING"

           The other point is what happens when readyState is
           not OPEN:

           http://www.w3.org/TR/websockets/#feedback-from-the-protocol

           "When a WebSocket message has been received ... follow
            these steps:

           1. If the readyState attribute's value is not OPEN, then
              abort these steps."

           Chromium aborts at step one, preventing any further
           onmessage events. The event handler would be called in
           step 5.

           All these tests call WebSocket.close() before the onmessage
           event is received, preventing the event to be delivered.

[Solution] Move the call to WebSocket.close() to the end of the
           onmessage event handler.

Change-Id: I068c008de8972c01a1d815c16ad16f9fe21a5ae0
[usecase-webapi] Improve Clipboard usecase

- Modify button name "Launch" to "Launch clipboard test" and remove button "Retest"

Impacted TCs num(approved): New 0, Update 1, Delete 0
Unit test Platform: [Andriod]
Test result summary: Pass 1, Fail 0, Blocked 0
[Xmlhttprequest] Fix xmlhttprequest tests.

Tests are incompatible with the XMLHTTPRequest
spec: http://www.w3.org/TR/XMLHttpRequest/
In current implementation send() may be called after abort()
This causes tests to fail.

Change-Id: I09720b8a2c88b277cf846f584b0ccf1002aeff6a
fixture 1
[usecase-webapi] Improve Viewport usecase.

Impacted tests(approved): New 0, Update 1, Delete 0
Unit test platform: [Tizen IVI]
Unit test result summary: Pass 1, Fail 0, Block 0
[usecase-webapi] Improve WebSpeech usecase

- Adjust the case with screen view
- Failure analysis: Could not connect to speech recognition service

Impacted tests(approved): new 0, update 1, delete 0
Unit test platform: [Tizen IVI]
Unit test result summary: pass 0, fail 1, block 0
[usecase-webapi] Improve WebRTC usecase

- Adjust the case with screen view
- Failure analysis: https://crosswalk-project.org/jira/browse/XWALK-1535

Impacted tests(approved): new 0, update 1, delete 0
Unit test platform: [Tizen IVI]
Unit test result summary: pass 0, fail 1, block 0
[webapi][XWALK-2186] Remove the manifest.json from WGT packing script
[usecase-webapi] Improve webaudio usecase

- Remove precondition.

Impacted TCs num(approved): New 0, Update 1, Delete 0
Unit test Platform: [Andriod]
Test result summary: Pass 1, Fail 0, Blocked 0
Merge pull request #575 from tiwanek/XWALK-2208

Fix tests incompatible with latest WebSocket spec.
Merge pull request #611 from JianfengXu/xujf/webaudio/update

[usecase-webapi] Improve webaudio usecase
Merge pull request #556 from tiwanek/XWALK-2205

[Xmlhttprequest] Fix xmlhttprequest tests - abort-upload-event-*
[usecase-webapi] Improve RawSockets usecase

- Adjust the case with screen view

Impacted tests(approved): new 0, update 1, delete 0
Unit test platform: [Tizen IVI]
Unit test result summary: pass 1, fail 0, block 0
Merge pull request #607 from zhuyongyong/yongzhu/webapi-wgt/id-format

[webapi][XWALK-2186] Remove the manifest.json from WGT packing script
Merge pull request #583 from zhangjingx/zhangjingx/misc/clipboard

[usecase-webapi] Improve Clipboard usecase
Merge pull request #584 from minxhuang/hm/misc/usecase-w3c/Viewport-hotfix

[usecase-webapi] Improve Viewport usecase.
Merge pull request #589 from yunxliu/yunxliu/misc/rawSockets

[usecase-webapi] Improve RawSockets usecase
Merge pull request #591 from yunxliu/yunxliu/misc/webSpeech

[usecase-webapi] Improve WebSpeech usecase
Merge pull request #593 from yunxliu/yunxliu/misc/webrtc_update

[usecase-webapi] Improve WebRTC usecase