Teleporter

This might contain poorly written code, although most of it is copied from other blocks and the priority gui. Also, I originally implemented this for myself.
Basically I don't have any expectations about this being accepted. There could be much cooler teleporters, but I'm new to programming and modding, so I couldn't do something like that, however I'd appreciate if you take a look at it so I can learn something. :)
The coding style we're using for AE2 has { and } on their own line and there should be spaces around operators as well as ( and ).

What does -1 mean in this context? drain is disabled?