Updated for Spring Cloud 1.0. Added demo script.