Remove unused (local) variables in web/
Remove some unused variables from src/

Only obviously useless, local variables have been removed.
Merge pull request #4607 from Rob--W/unused-vars-1

Remove a bunch of unused local variables from web/ and src/