add localStorage API, resolved #20
Merge pull request #297 from allmobilize/issue20

add localStorage API, resolved #20