Fixed up singleplayer

Improved method of detecting other portal, now done once in
InitPostEntity. Renamed lua files because they were very generic and
prone to collision. Added distance check in a bad optimisation attempt,
only renders portals when you're close to them.