Merge pull request #499 from SubJunk/master

Make sure the incoming rating isn't higher than what is allowed
fix typo
fix typo in tab link
#497

This adds cache invalidation for posted comments and changes the place
where the static cache is applied. Cost of the latter on my test system
is a 17% increase in time to load the page when the cache is used.
implement formatting for printImageMetadata
Merge remote-tracking branch 'origin/master' into Static-Cache
Missing change
release id 5e19bab1a7
Fix typo
Merge remote-tracking branch 'origin/master' into Static-Cache
fix portable URI handling for multiple images
#497

Check if caching is enabled before serving a page from the cache
#497

fix possible race conditions
Fix cachefilename for news categories
variables declared global are always "set"
comment handling cleanup
fix #497
Merge remote-tracking branch 'origin/Static-Cache'
fix #505, fix #504
#504
Rework of #505

It is now apparent that page number validation cannot be done without
some participation from themes, at least themes that do "odd-ball"
things (such as having zenpage items on the index page.)

This change adds the ability for themes to participate in the decision
as to if page numbers are valid. Only default and perhaps zpmobile are
simple enough to not require participation.