Move gs parsing of generation and metageneration to handle_version_headers

Added test to make sure that the key's .generation and .meta_generation properties get updated when the contents are modified.