Fixes #45 by removing the local mode entirely, cleaning up some stuff.