TIMOB-17260-If there is layout pending, queue up new request to animate

Modified the animate code to queue up a new request if there is layout pending.

https://jira.appcelerator.org/browse/TIMOB-17260
This is to set the flag to track pending layout. If layout is not pending we can execute the animation right away otherwise we need to queue it so that it will be done after layout completion