Get prototypes definition outside of the constructor in mongo playlists driver

This is js best practice, if we put the prototype functions inside the constructor they're redefined every time an instance is created.

Depends on #83