Ports improvements from IG2 to IG3

Also fixes all Java warnings in RemoteContentService
Merge pull request #82 from stenbacka/rcs-fixes-ported-from-ig2

Ports improvements from IG2 to IG3