Add hits to the database column in Gear.

We want to be able to count the number of direct accesses that this
record in the database gets. Some lazy form of metrics.
Add some proper 404 errors as necessary.

We should be responding with 'Not Found' errors if we are unable to get
the resource using the identifiers supplied.
Fix issue where 'v' gets passed in URL for version.

Do a simple cleanse on the input string here.