Enhances the API

Adds sorting by id to the Library data functions.
Adds REST route to change the RepeatMode without explicitly specifying
the new one.