Various fixes.

- URL fix to remove the "/" at the beginning of queries.
- Generate first resized page for each chapter in gen_thumb.
- Avoid handling arrow keys with modifiers.
- Add "GMT" to time string of caching headers.
- Change animation from fading to blinking.
- Remove unused thumb.php.
- Whitespace fixes.
Sanitize input