editor: remove commented-out code
editor: rename awkwardly named method

Rrename SyncDocument::getTrackOrderCount to getTrackCount. While
we're at it, move the implementation of some methods to the source
file.