Ensure valid/invalid shares is 0 not NULL
Fix account shares SQL, method to delete archive

Allow users to clean up the archive if archiving is disabled.
Add archive cleanup to PPLNS run

* Added cleanup for archive shares
* Added some debug output

Addresses #143 and fixes #360