Code cleanups and redo web location if statements into a hash.