Added json api

Resolves #6 
what is mongoskin used for?