add `store`, `restore`, and `stub`, and pass analytics object in
Merge pull request #15 from segmentio/add/helpers

Add/helpers