Implement web-based import.

It's ugly as sin, but it works. Right now just spawns a thread for
import and redirects to the homepage. Eventually we'll want to give
the user some sort of information about what's going on.