Add ol.Map.isIdle function.

Returns true if all the tiles are loaded and no animation are in progress.