Add preloader for pdf reader

Squashed commit of the following:

commit befc128f58fab75287ee1bd886043fdf5bce68c6
Author: Jonasz Grochowski <tensaioni@gmail.com>
Date:   Fri Sep 12 11:02:47 2014 +0200

    Add preloader for pdf reader