Implement TestHttpResponse.getContentEncoding.

Closes #1219.
Adding method to FragmentTestUtil to start a visible fragment with a
custom activity class and container view ID.

Closes #1206.