Partly implemented JSONWebDB

Work in progress.