Set up gems and basic application configuration.