Added deal adding API & tests
Changed way data is serialized to API (fixed all tests)