Parse session.maxAge as a duration

I'm very new to Scala, so I suspect there's a more idiomatic way to do this. Sorry!

I note that in future Config will support getDuration(path, timeUnit) which will allow for a nicer fix.