Timezone-related issues

Simplified and fixed iat claim creation - time.mktime(time.gmtime()) doesn't work correctly, because mktime does expect localtime as its argument.

Also fixed expires/notBefore handling of timezone aware datetimes using calendar.gmtime.