Make MaskBinsFromTable work with mask tab window.  Refs #6904.

1. Refactor the code to make it more flexible to read TableWorkspace.
2. Enable the algorithm to read in DetectorID list other than
SpectraList
3. Add unit test for new feature.
Change output workspace space column name.  Refs #6904.