Added API for portal cooldown ticks and replaced internal teleportTo with own method

Signed-off-by: Irmo van den Berge <bergerkiller@gmail.com>