SHDP-439 Add support for graceful yarn app shutdown

- Second stage changes
- Add boot auto-configuration for logic around
  shutdown endpoints. Functionality is disabled
  on default just like in boot.
- New ContainerRegistrar on container.
- New EndpointContainerShutdown on appmaster