'intensity weighted mean' averaging added to ProteinQuantifier, solves #830

This pull request adds the option of 'intensity weighted mean' to the ProteinQuantifier tool.
Move the declaration of the iterator into the loop and use "!=" in the exit condition (always when you're dealing with iterators!).