A start on connections, and updated map/room gui code

There is still a lot more I have worked on, but I can't remember everything. This is mostly a backup of the changed 3d map code before I work on it to make it 2d.