Cleanup code

I was able to get all the cleanup code working, except deleting from the geodatabase file -- I'm not sure if this problem is specific to my machine, but I get an error when I try and create a cursor in the geodb.  So far I haven't found a workaround but I'll keep looking.  The script works ok without this, though.  One other thing (noted as TODO comment) is I don't know the folder name for the map service on the server.  I also added a block of code to pyconfig for my machine.