Per design in YARN-2928, implement RM writing app lifecycle events to ATS.
[Collector wireup] Set up timeline collector with basic request serving structure and lifecycle
[Collector wireup] Implement RM starting its timeline collector
[Data Model] Make putEntities operation be aware of the app's context
[Data Model] create overall data objects of TS next gen
Reuse TimelineCollectorManager for RM
Scalability validation of RM writing app/attempt/container lifecycle events
unit tests failures and issues found from findbug from earlier ATS checkins