added multipart stuff for uploading. Still work in progress