Bootstrap

had not enough time to actually provide code for the TODOs, but take a look at pkg_resource.require, it should replace most of the find_egg/regexp code
i also found a typo in an EB env var