Refactoring song library display. Prepared SQL statements.

Hey tgpo,

I have thoroughly refactored the song library display and changed the database access to use prepared statements.

I also took the liberty to rearrange the source code directories, though I didn't touch the `admin` folder. You may still want to fix a couple of import paths.

----

You can merge these changes by accepting this pull request.

Best,
orphoneus