make envcacher modular, apply apache2 license, update setup.py