Set API key in settings
Commented out unneeded balanced.configure in middleware and sync.