Write statistics and ratings in Library, not LibraryBackend.
Delay writing WMA ratings and play counts until playback has finished.  Fixes #3593
Don't do seafile stuff unless signed in.