Merge pull request #46 from Kunstmaan/previewofflinepages

make it possible to preview offline pages
Ensure php 5.3 compatibility
Merge branch 'master' into 2.2