Generate environment variables from links.

Fixes #91.
Maybe "not *necessarily* be the port".  Who knows, you *could* expose the service on port 80.