Install packages as separate function

Instead of on init, which can cause slow startup problems when
contacting servers.