Adds NewerThan stock freshness policy.
General improvements throughout.
Adds a couple tests.