Add fullpage class to viewer element when in fullpage mode

Add utility functions to add/remove CSS classes, since the current string-manipulation approach has problems in edge cases.

Special unrelated bonus fix: remove executable bit from PNG images.

Fixes #61.