Tests for the REST framework.
Rewrote the submission ajax api for better look.
Added error handler.
REST bugs fixed, added tests.