Added stat method to FileResource and refactored RubyFileStat to make use of it.

This way RubyFileStat doesn't need to do any more custom logic for jars.
Harden against null path names.
Hmm merge instead of rebase