[Android WebView] Add AwResource.setResources() and setErrorPageResources().

This is part 1 of a two-sided patch to get rid of public static fields
in AwResource.java.

R=mnaganov@chromium.org

Review URL: https://codereview.chromium.org/155653003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249505 0039d316-1c4b-4281-b951-d872f2087c98
Adds additional hand-rolled specializations for IPC types.  Also tweaks the integer random number generator to favor a few common values. 

R=aedla@chromium.org

Review URL: https://codereview.chromium.org/154383003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249506 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 249506