permalink api available.

add :save option to generate permalink.
fixes :save internal value

:save value must boolean. before it was string.
json-read/load cleanup