Search, Inventory checking and Klugery

The search now works, and the top three results really are the most
popular movies, rather than just the first three in an alphabetical
order.
The site now checks that there is enough inventory when you try to
purchase movies, and also checks for max rental nights, but this caused
a bug and I had to kluge it.
As such, I'm committing this working version to save before screwing
with the database queries java files.
Small improvements as well.