Updated to use spring-cloud Java config.
Fixed setup and usage of profiles.
Merge remote-tracking branch 'origin/master' into spring-cloud
Refactored repository and connector config to use latest spring-cloud capabilities.