Extract egg/package name from URLs.

Added conditional to check for and extract egg/package name from URLs.

Fixes #83.