Refactoring of env.h/env.cc: splitting in multiple files, improving code
Getting rid of internal_fwd_decl.h