test: Use mock patchers

To get proper cleanup functions even in case of failing tests, use
unittests addCleanup function. This isn't available in Python < 2.7 so
use unittest2 in that case.
plugins/quotes: Make the database path an option
searchquotes: Send a message if no quotes were found