Organism alarms: always trim the alarms log

Addresses #276
Core: always trim the history log

Addresses #276
Organism alarms: save log limit in database
TEMP