Add timeout to animation callback (squashed)

Squashed version of randy/cef1750-issue-7689 branch - pull request https://github.com/adobe/brackets/pull/7852

cc @njx @peterflynn