completed todo implementations for both restful and classy api views; added test cases