minor changes to logging
Added logging and logging config to api.py; Added option to curl-test.sh to pass in POST params directly, restructured file; Modified exception behaviour of lookup in db.py; minor logging bug in core.py; Seem to have introduced delay bug in api.py where request waits on celery to finish