Proper regal waveform support on the PW2

Following what's been discussed in [#550](/koreader/koreader/issues/550).

Warning: don't merge as-is, there are some stuff in it that might change, pending the outcome of [#6](/koreader/koreader-misc/pull/6) in koreader-misc ;).