Fix crash in BiomeInitializer when used in non standard WorldTypes

Fixes crash when BiomeInitializer runs in WorldTypes with less that three GenLayers. For example a world without river gen only has 2 Layers, the river is the 3rd.

Also remove redundant old code.
fixed flood gate and finite liquids, close #1563
Auto assign Biome Ids

Finds unused Biome IDs if the ones in the config are in use by other
mods. Also saves change to config file.
Auto assign Biome Ids

Finds unused Biome IDs if the ones in the config are in use by other
mods. Also saves change to config file.

Changed default Biome Ids to 126 and 127 which are just below a block
used by Minecraft.
Update BuildCraftEnergy.java
Merge branch 'BuildCraft-5.0.x' of https://github.com/fabricator77/BuildCraft into fabricator77-BuildCraft-5.0.x
fixed duplate method
removed unused code
Must use dev version
Merge branch 'BuildCraft-5.0.x' into BuildCraft-5.1.x
Merge branch 'BuildCraft-5.1.x' into NextGen