Add constructor arg to TmapTmProvider

It would no longer work with the latest changes in
TmProviderAdapter.
Add XTCE-like alarms support for integers, floats & enums

The spreadsheet structure is a little bit different than the
previous Limits sheet. Low/high columns were removed, and
replaced by a trigger type/ trigger value column. Low/high are
now two different trigger types. An additional trigger type
‘state’ was added which allows triggering on the state of
Enumerated parameters. There appeared to be already
some logic in place for this, but not through the
spreadsheetloader.

Severity levels were extended. This was also
reflected in an update of MonitoringResult, which
was not using the XTCE alarm levels.
Fix bug with calibrating high uint32 values

Forgot to add a &0xFFFFFFFFL during a previous refactoring.
Added a test so it doesn’t happen again.
Add minViolations attribute support

XTCE has a minViolations attribute per AlarmType. It’s a bit obscure how
exactly it should be interpreted. The implemented approach is
to keep setting the appropriate pval MonitoringResult
(e.g. WARNING_LOW), even if minViolations is not reached. However
the minViolations is used to limit when an alarm event is sent.
Enable use of calibrated comparisons in spreadsheetloader

The containers sheet works with uncalibrated comparisons,
whereas the alarms sheet works with calibrated comparisons.

As a first step to unify the expression capabilities of both, add
support for calibrated comparisons of container conditions,
without changing the spreadsheet structure.
Log stack trace for any error

For ConfigurationExceptions Yamcs just outputs the general reason to
System.err, without any stack trace. However, many exceptions get
wrapped in ConfigurationExceptions all over Yamcs. So you’ll often find
for example an NullPointerException with no notion of where it originated.

This commit just adds an error log entry with full stack trace.
Algorithms: Fix resubscribe after unsubscribe

Fixed two issues with the algorithms:
 - resubscribe after unsubscribe did not work (method would short out)
 - unsubscribe of 1 output parameter would turn off the
   whole algorithm. This should not happen if there are more output
   params, or when the algorithm is marked as ‘always on’
Improve error reporting in spreadsheet loader

The SpreadsheetLoader was using a variety of different
exception mechanisms. They are now all standardized
and throw a custom SpreadsheetLoadException which
accepts some contextual information that give the
user some clue about where the error message occurred
(file, sheet, row)
Algorithms: make in/out optional when declared by previous row
Fix context comparisons for alarms

This got broken somewhere in one of the previous commits..
Unify different comparison comparators
Improve error handling in PV (fixes #3)

In order not to pollute to much code,
DatabaseLoadException was made unchecked.
I consider this a better fit anyway. PV will still
check it and render it in a nice dialog.

The old XtceDbFactory was not very friendly towards
its users. It would forcefully exit which was causing
the PV to disappear on the slightest user error in the
spreadsheet.
Fix refmdb

This merges all the changes that were made
to the refmdb on various branches.
Merge pull request #36 from fqqb/various

Various...