Fix the currentAppAttemptId error in AHS when an application is running

Details

Description

When I using the REST API of the AHS to get a running app's latest attempt id, it always returns a invalid id like appattempt_1516873125047_0013_-000001.

But when the app is finished, the RM will push a finished event which contains the latest attempt id to TimelineServer, so the id will transitive to a correct one in the end of the application.

I think as the app is running, this value should be a correct one, so I add the latest attempt id in the other info of the app's entity when the app trans to RUNNING state. Then the AHS will use this value to set the currentAppAttemptId.