Encapsulate m_nCurrentLayerIndex into LayerManager
Replace Editor::getLastFrameAtFrame() by LayerManager::LastFrameAtFrame()
Remove unused functions getLastIndexAtFrame(), getLastFrameAtFrame()
New cache policy, remove old cached related code