use const keyword at (some) appropriate places
introduce new function to emit warning and other non-error messages

also refactor the error message subsystem a bit
nit: update copyright dates
emit internal message when action is suspended and resumed
bugfix: action suspend timeout was not increased
add new impstats action counters:

  * suspended
  * suspended.duration
  * resumed
actions now report if they suspend and resume themselves