Rate limiting

Add rate limiting so apps can only spawn a certain number of new tasks per second (default 1.0)