Allow HSTS max_age values to be a string or an integer

I ran into a problem where I was using 1.year.to_i for my max_age, yet STSBuildError kept throwing on me. Similar to how X-XSS-Protection values were fixed, change HSTS max_age to allow strings or integers.