Misc fixes.
Adds purge command on server side, and fixes add bug where it saves the wrong hash after purify. Also adds the ignore option on get.
Merges purge command.