Changed api.py to insert json (was erroneously inserting string). Added
initial testing structure.