added generic function to create a new history playlist

As said on "https://bugs.launchpad.net/mixxx/+bug/1261079", here's my pull request.

![attachment](https://f.cloud.github.com/assets/3892217/1829694/96241a34-72ef-11e3-95b0-b12742fed594.png)