[install] Improved Python packages support.

This now uses a requirements file to specify the packages to install.
[install] Improved Ruby packages support.