Allow editing documents from view

Closes COUCHDB-2494
This was a prickly issue,

I pushed a special branch to see what's happening with the afterRender being called twice
https://github.com/michellephung/couchdb-fauxton/tree/editingFromView-special-afterRender

> Special commit [DoNoMerge] …
This is a special commit which shows afterRender is being called twice
in some instances.  

>1. Click on a view, (in the sidebar)
2. Click edit one of the documents shown
3. Click ‘Back’
4. Look at console to see

in  150698d, I've done the initial work to allow editing documents from a view
in the next commit, 93f54d0, i've undid some my work, to show it being called twice.

I've added a console.log() to show when it's being called in the code, so you see whats going on.

We were using a work around before, but I changed the code so it just checks if the search/query options show up, and renders it if its not there