core: Calculate a checksum instead of using a timestamp. Fixes #633
core: Use max_age config setting in expires callback of controller_lib. Fixes #749