Fixes for assignment emulator that allow it to work in the cloud (was
assuming localhost).