Added ability to query for related documents
Fixed wrong URL
Forced format to JSON for all requests