Issue 881. RtContents.java update content in specific branch.

Why did we remove `ref` here? I understand your refactoring, but it's still a valid param although it's within the `json` object now.

Previously, if `ref` was specified, we used it, otherwise we used `master` as its value. We can do the same by checking if `JsonObject.containsKey("ref")`.