New Env class and tests.
More logging, tests, safer environment
Remove usage (deprecated) of rasterio.drivers()
Also pep8 cleanups throughout the tests and a fix for unchecked
dtypes when opening a dataset in 'w' mode.
Now we can simply import warnings in __init__.py. In the
deprecations tests, we needed to see a single warning only one
time to avoid multiple drivers() warnings.
Add a global env.
Add rasterio.env.setenv()
Never restore it to the GDAL default.
Also get in line with best practices for library and application
logging: NullHandlers attached in rasterio/__init__.py and then
overridden in rasterio/rio/main.py.
Closes#649