Support tighter rate limiting for "non-standard" thumbnails

* Also avoid passing some junk params to File::thumbName()

Change-Id: I7e89f72ade47be7fcc7bf33f0afb970183aac936
Merge "Support tighter rate limiting for "non-standard" thumbnails"