refactor the large if-elif-else used for searching
added search-hook for plugins using "search" scope
moved loading of plugins to initialization
Turn method importing.ImportDialog._unicodeWarning() into a function.
Merge pull request #27 from ospalh/fix-warning-method-function

Turn method importing.ImportDialog._unicodeWarning() into a function.
make sure y axis starts at 0

https://anki.tenderapp.com/discussions/ankidesktop/793-strange-scaling-in-statistics-bar-bug
preliminary preview support
remove unused onRevlog()
use futuristic division

Python used to use C-style division, where division of two ints was
truncated, and division involving a float resulted in a float.

This is confusing, because you often can't tell from looking at a
line of code in isolation what sort of division it's supposed to do.

With 'from __future__ import division' Python ensures that division is
always explicit.

// means (floored) integer division
/ means float division

regardless of argument types.

This should make the source a bit clearer now, as well as removing one
obstacle if Anki is ever ported to Python 3.
Merge remote-tracking branch 'dae/master' into flake

Conflicts:
	aqt/browser.py
	aqt/importing.py
A bit of re-cleaning.
Clean the new bits of the card browser.
allow overwriting existing files in export (thanks to Chris Burel)
Merge pull request #28 from MichaelBlume/future-division

use futuristic division
do integrity check when closing collection
use future division in those aqt files too
future imports must go at top
minor clean-up
fix race in preview mode, and fix preview shortcut keys in qt5
handle chrome's newlines in url issue and make sure to clean up progress