Add support for the context manager protocol to netcdf_file objects

This PR implements the context manager protocol (__enter__, __exit__) for the netcdf_file class. This lets netcdf_file objects be used with the "with" statement in the same way that regular files are.