Split ApiTempUpload into two ApiAddMedia[Temporary|Permanent]

Please do not merge yet.