Refactored Layout and View, upgraded to latest LM

The Layout object was a simple wrapper over the Layout constructor
instead of extending the constructor itself.  I've patched this to make
it more consistent and removed duplicative methods.  I've also removed
the tests for `removeView` since that is now a built-in method.

The latest LM contains bugfixes and render performance updates that
unforuntately have to be opt-out.  Areas in the source or tests that are
expecting synchronous renders must be patched to work asynchronously to
take advantage.
Upgrade backbone.layoutmanager

Work off Tim's initial commits and adjust to cater for the use of
establish functions in views and routeObjects.
We don't want to immediately render the view. We first want any pending
promises returned from a routeObjects establish and a view's establish
to complete before rendering the view.
delete unused variable
Fix deletion of docs that where selected using select-all

- add docs on page to bulk-delete-collection on select-all-click,
  which also reenables the trash-button
- make AllDocs testable, enable injection for viewMeta

Closes COUCHDB-2291
Fix double-click on design documents in all-docs-list

Closes COUCHDB-2247
fix test

travis was green but outdated
Sidebar improvements

Some UX improvements to the sidebar in a database view
Implement a filter for databases

Uses a new model to manage the state of the different search
filters to filter the view.

Nice feature: the filter for the database (upper input) and
the filters for the type (buttons) work nicely together,
so you can filter out all replications for that
database (let's name it registry)  without the compaction,
if you choose replication as type and enter "registry" in the
top input.

Closes COUCHDB-2125
Provides grouping and better formatting for design doc metadata

Fixes COUCHDB-2174.
couchapp@0.11.x

removes the horn on push which breaks on linux
Disable async rendering to fix race conditions
Fix navbar icons padding
Fix align for active tasks progress bar and button
Fix double render when a new template is rendered

This fixes the double render issue we are getting. This is very
noticeable on a first render. The fix is to wait for the layout to
rendered and then only render the views.
Fix failing tests
Api bar improvements

If the api bar is visible and a user clicks elsewhere it closes.
Also use correct icons
API URL style updates, added Velocity.js (http://julian.com/research/velocity/) for use on animated transitions
Code improvements from PR
Fix API bar buttons color
Hide api bar correctly when api-url-btn clicked