moved env.rb from lib to app folder

it's autoloaded (no need to add configuation) and it's easier to see
what is happening if it's in the app folder.