add gemset and ruby version
refactor braintree initialization code