store schema in yaml

It's a bit more readable plus we can validate it with jsonschema.

Signed-off-by: Jan Dvořák <mordae@anilinux.org>
jsonpatch: drop apparently invalid import

Signed-off-by: Jan Dvořák <mordae@anilinux.org>
reworked json patch / dbdict backend

Signed-off-by: Jan Dvořák <mordae@anilinux.org>
remove foreign jsonpatch / jsonpointer code

Signed-off-by: Jan Dvořák <mordae@anilinux.org>
common: remove unused defer.py

Signed-off-by: Jan Dvořák <mordae@anilinux.org>
move from cjson to simplejson

It's simply more widely supported.

Signed-off-by: Jan Dvořák <mordae@anilinux.org>
redesigned and improved RESTful API

Broken:

 *  Websocket-based notifications - commented out.
 *  Celly - incompatible API and reflection, need complete rewrite.

Signed-off-by: Jan Dvořák <mordae@anilinux.org>