NEW: get XSPF playlist

Conflicts:
	index.php
Cherry-pick a90518a, fix bad indentation & add sorting.