Implemented Persistent storage with the use of loopj's lib

Close #5