refactor to support jruby and cross-platform operations
prepare files for distributing the script itself
config for warble, to build jar file