Fixing broken playlist implementation.

Also some small code cleanup and refactoring.

Looks like what I did in nvbn/rhythmbox-gmusic#43 was causing some issues with RhythmDBEntry refcounts and wreaking havoc all over the library browser. Fixed all that, it looks like.