Update gems
Setup events before initializing components.