ADDED: full REST backend
ADDED: tests
FIXED: now full REST interface