Don't JSON encode startkey_docid or endkey_docid in view query
Add test for startkey_docid and endkey_docid
Remove weird trycatch function