Check memory allocation
Avoid large amount of scaling for pages at low zoom level
Penalize large render jobs during zooming

All but the last jobs during zooming are aborted, so let smaller
jobs go faster.
Make thumbnail maximum size configurable
CS

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
Merge remote-tracking branch 'xlz/develop' into develop