Implemented TimedLife trait.

Closes #5724.

Replaces RemovesImmediately.
If the ticks are left on the default of 0, it acts exactly like RemovesImmediately.
Style nit: add braces around the block body if the inner statement is an if-else.