Added GET and POST components to exchange JSON data between server and client.