Removed CheckLayerAvailability code. Note: A more recent version of this code is in the Portal2 branches
Removed unused CheckForBrokenLinks code