Adding API for getting jobs and uploading a file
Restructured the internal API functions to do get and post calls