Trash functionality, fix UID and don't write snakebiterc

Change-Id: I50110c18cb895c5feae46c370d0184c59212054c