Added single upload and chunked upload support (last partially)