First working version of the client. Everything works, except that the API output/JSON is not the right format, so I am using a static file for testing now.