Crappy rework of the model detection on Kindle.

In case it wasn't obvious, I badly suck at lua :D.
Merge pull request #364 from NiLuJe/master

Possibly slightly less broken PW2 detection