add parameter to REST api for todos to limit result to active todos. Fixes #1388