Updates plgenerator.py

Selection of tracks is done by reduction of playlist by given criterion
instead of threshold, until the desired size is reached.

Adds:
 * Randomization of tracks order in playlist (default behavior)
 * Sorting by ratings or proximity

Removes:
 * Selection of tracks by distance threshold