Moved rooms-and-corridors dungeon builder code into its own lib file.