Put a generic expdate method in the Gateway class to reduce duplication.

The same expdate method is in so many different gateways that it should probably be part of the base class. This is still a WIP so feel free to suggest better places to extract it to.