implement upload using connect instead of curl - move tdel.py into tests/test.py