Parse session.maxAge as a duration

This allows the property to be defined with units e.g. "30 days".
Thanks to @huntc for suggestions on improving legibility.