fix eclipse compilation bug and correctly implement futures

There is some kind of bug in the scala eclipse plugin, which was
causing a compilation error, and I resolved by removing and readding
the common package (and while I was at it, I renamed it).  Also I
finished writing the async call.