Create/edit and query views.

It is now also possible to preview views with pouch. Issue #1806
Add design doc metadata to view
Fixes issue #1816
Show view request duration amd goto doc id

This is for issues #1812 and #1810.
Fauxton wrap codemirror errors in try catch.