Fix triage of samples.

The 'analysis' attribute is gone, so check for results using the
AnalysisResults object.

While here, remove analysis from Sample schemadoc.
Apply triage fix to certificates too.
Fixing up triage.

Added appropriate run_triage calls and template changes for other TLOs
where Analysis services make sense.
Merge pull request #260 from crits/triage_fix

Fix triage of samples.