Organized classes into their own files

No functional changes
More secure uids in GatewayMessage->generateIdentifier()

uniqid() isn't secure (see php.net)