Updated todolist app to work with rest services