Updated server and added handler file for each api interaction.