Implement search

This adds a search bar that will search the database and show the
results in a new tab.
Refactor some of the JS

The click handler for the albums and artists was repeated pretty often
so I gave that its own function. Also the options for the draggable
objects was repeated a lot so that got a variable. I also removed an
unused function and added some spacing to the long lines of HTML.