Update dependencies and remove extraneous gems.