scripts: (cpu_usage) flatten the script

This commit flattens the cpu_usage script, and add a few tweaks, like:
using $! instead of $?, setting default values for warning and critical
thresholds, set the urgent flag if critical value is reached, and
redirect stderr to stdout.

The interval is also increased to 10 seconds.

Refs: #11