Refactor of models.py; integration tests

Changed the fields in a service to be Report field instead of
dictionaries to allow validation on their content.
Added some more doc-strings
test_api.py contains integration tests
moved curl scripts to seperate folder
check that tests use the test database
changed how we convert mongo docs to json