Expose measure number and repeat list to plugins

Needed for my plugin Repeat list (http://musescore.org/fr/project/repeatlist).
I don't think so. Actually if you search in the code `Score::measure(int idx)` is never used.

What's the purpose of gotomeasure? Could it take a Measure instead?