Add handler for environment

#46
Add serverside support in dao.authorize to include environment in
returned dataset.
Add reqres handler to return the environment when needed.