allow main webview to focus, which may fix shortcut issues

some users reported plugins that define reviewer shortcuts broke
Merge branch 'master' of github.com:dae/anki
use default sample rate instead of forcing 44100

The 64 bit built of portaudio on OSX seems to generate a wav
file that says it's 44100 but is actually the default rate, leading
to samples playing too fast or slow.
don't fail if \n in cloze
Close file descriptors before unlinking

Unlinking a file before closing may not be supported on non-POSIX systems
such as Windows. This allows more tests to run to completion.
Add hooks before and after a state change.

Useful for plugin authors.
Merge pull request #76 from sagittarian/state-change-hooks

Add hooks before and after a state change.
Merge pull request #75 from ispedals/winTestFixes

Close file descriptors before unlinking
bump version
allow app modal again now that qt's been fixed
Merge pull request #1 from dae/master

sync to main repo