Merge pull request #701 from chrox/master

considering visible page count in readerrolling
Wheee, more Kindle startup script tweaks...

Unfortunately, it appears that we do eed to sleep some more when started
from KUAL, because the framework schedules a refresh that risks popin up
over us if we start too early/fast... :/.

I tried to be tricky (by stopping awesome, and s cheduling a resume
later) to avoid sleeping, but that didn't work :'(.
We just end up with the scheduled refresh as soon as awesome resumes...
Merge remote-tracking branch 'upstream/master'
Close lipc handles on exit.

No idea if bad things happen if we don't, but at least this sounds more
correct. (re #696)
Update koreader-base...

To check how badly the nightlies will implode... ;D
We don't need those at startup, delay until needed.
Add an 'ASAP' variant to the KOReader KUAL menu.

Does away with the added ~3s of sleep, in exchange of possible UI quirks
at startup.
Merge pull request #702 from NiLuJe/master

Some more Kindle tweaks
Some Kidle refresh mode experiments...

Emulate (as best we can) the refresh behavior of the Kindle Touch reader
Try to use reagl on the PW2...

That doesn't seem to work as nicely as the stock reader... :/
Clear up some comments...
Another hugely important commit!
One more comment...
Keystrokes aren't that cheap.
Update koreader-base.

For the backend changes related to #704
Fix the battery checks.

I have *no* idea how that even seemed to work, but in fact didn't.
Also no idea where the hell is the battery status supposed to appear in
the menu, because it's currently not there.
Add a battery indicator to the menu.

Very quick'n dirty hack, doesn't seem to blow up horribly.
re: #679
Merge pull request #704 from NiLuJe/master

Some Kindle screen refresh experiments (bis)...
Detect the EU 4GB WiFi PW2
Add a warning about the waveform mode constants...

Note that they're from the Kindle driver, the Kobo one might expect
slightly different values...