Check for Rails before trying to get the env
Remove the old example.rb and add examples/ folder

These show the usage for creating an envelope from a document both via
the gem, and via a raw NET::HTTP::Post request