Move bare code from jently.rb to Jently module, and add specs.