expose client/server braintree api to client and server