add REST todo example, closes #1