internal/router: add fullySpecified parameter to IdHandler

Also add selective caching to internal/v4.
Merge pull request #208 from rogpeppe/091-fully-specified-idhandler

internal/router: add fullySpecified parameter to IdHandler

We also change internal/v4 so that the Cache-Control header is only added when the id is fully specified.