Renamed alerts to messages.
Fixed the placement of a log statement.
Refactored the resource usage monitor.
Merge branch 'ftr/usage-refactor' into ftr/plugins