Merge pull request #4 from fukata/master

fixed typo
fixed bug if auto_purge is zero
use // for auto_purge attr checking
code cleanup
dependency change: JSON instead of JSON::XS, as JSON will use JSON::XS automatically if it's exist
Release 0.07
manual merge forked