Add environment.rb with common code for rackup, console and Rake