Changed return types to JSON Objects Fixed #45

Search and openTabs will now return a JSONObject as their results rather
than a long string in a json object.