Register application with correct spring-boot management path

At the moment the management.context-path isn't used when the application registers itself. This PR fixes this.