JRuby support WIP.

Ignore the branch name.  This is just for JRuby support.

@igor47 @pcarrier