topofied

added the most important changes from my old tspd repo to the current
openspades codebase