Add setTimeout and setInterval

Fixes #7