Add search functionality

Implemented basic search functionality. (Just .json now)

I couldn't find the docs for search; if there are some, I can add other options as necessary. 

Requires json or simplejson to work.