Update dependencies to latest versions and remove unused packages.