Trying to make a proper json response

This includes having a content-type definition, and a status.
May be usefull for the testing.
Started writing test

No tests pass yet
Some passing tests