Let's us core's time constants rather than raw

These have shipped since WP 3.5.  Magic numbers are harder to
understand at a glance.
Portfolios: Static functions are static.
Use an action, not plugin activation hook.

But leave the plugin activation hook there for legacy reasons.

Props @scotchfield
Fixes #904, #882