Rewritten musicxml export to integrate with ly.music, see also issue #376

The implementation that uses `ly.music` should now be ready to substitute the previous implementation. I should do more tests, but it seems that it can now handle everything that the old version could (perhaps with some minor exceptions that I'll deal with very soon).