Re #7822. Add a method to clear all but the last value.

This will modify a TimeSeriesProperty to keep only the last entry. Note
that 'last' means the last added, unless the property has been sorted
first.
Re #7822. A method to clear all log values except the current one.

Takes all TimeSeriesProperty logs and clears out all entries
except the last one. Single value logs are left unchanged.
Re #7822. Keep the last log entries instead of clearing.

The previous way presented problems with unchanging or
slowly varying logs as a chunk could be left with an empty
log that the analysis relied on having.
The particular problem one was 'EnergyRequest', which was
only appearing in the first chunk.
I think that we can count on the logs coming in in time order, so the
fact that the underlying methods don't check or sort should not be a
problem.
Re #7822. Remove hoop jumping.

We no longer need this now the live listener has been updated to carry
over the current value of all logs.
Refs #8094 add back one atom and test so not removed again
Refs #8094 only use one atom if number of formulas not entered
Refs #8094 fix builds
Refs #8094 fix builds
Refs #8094 use number density if specified by user
Refs #8118 tolerance for FindUBUsingIndexedPeaks
ParameterMap::operator== is now based on component names.

The check was on component IDs but these are only valid at runtime.
Refs #8148
Re #8142. Add a failing test that exposes the bug.

And a passing one in InstrumentTest (for a non-parameterized
instrument) as that's missing.
Re #8142. Add pass-through to base instrument if appropriate.

This fixes the issue of always getting zero back for a parameterized
instrument.
Re #8142. Fix coverity issues.

The base component (m_base) has to be of type Instrument; therefore use
a static_cast in place of a dynamic one.
Merge remote-tracking branch 'origin/bugfix/8142_nummonitors_fix'
Merge remote-tracking branch 'origin/feature/8094_one_atom_SetSampleMaterial'
Merge remote-tracking branch 'origin/feature/8118_FindUBUsingIndexedPeaks_tolerance'
Merge remote-tracking branch 'origin/bugfix/8148_parmap_comparison_broken'
Merge remote-tracking branch 'origin/feature/7822_carry_log_state_to_new_live_chunk'
Merge branch 'master' of github.com:mantidproject/mantid into feature/7637_improve_icat_gui