added file upload support, updated few endpoints and added some