Swansea City goalkeeper Gerhard Tremmel has sealed a return to the Liberty Stadium by signing a new two-year deal, less than three months after being released.