Add bodyAsJson getter to Request.

Rename Request (ScriptableRequest) to RequestInternal and wrap it with Request
constructor in JavaScript. Implement bodyAsJson in JavaScript by parsing the
JSON string returned by bodyAsJsonString.