Rewrites import_scan to avoid dependencies.

Was having trouble using the Rex library, and don't want to introduce
rest-client as a dependency. Turns out that hand-jamming the multipart
file creation seems to work just fine.