Fix for lookahead tray redirect problem
Fix for lookahead tray redirect problem

This fixes the following problem. To reproduce:
1. On the All Docs page of a database, edit a document.
2. Click Back.
3. Use the lookahead tray to select a new database.

Result: the page was missing content. What was going on was that the
route object ended up listening to the event multiple times, causing
the error. This now explicitly cleans up and re-assigns the listeners
for this scenario.

Closes COUCHDB-2503

robertkowalski/couchdb-fauxton,michellephung/couchdb-fauxton,popojargo/couchdb-fauxton,cloudant/couchdb-fauxton,robertkowalski/couchdb-fauxton,michellephung/couchdb-fauxton,cloudant/couchdb-fauxton,robertkowalski/couchdb-fauxton,garrensmith/couchdb-fauxton,garrensmith/couchdb-fauxton,apache/couchdb-fauxton,michellephung/couchdb-fauxton,benkeen/couchdb-fauxton,benkeen/couchdb-fauxton,michellephung/couchdb-fauxton,garrensmith/couchdb-fauxton,popojargo/couchdb-fauxton,garrensmith/couchdb-fauxton,apache/couchdb-fauxton,popojargo/couchdb-fauxton,apache/couchdb-fauxton,apache/couchdb-fauxton,popojargo/couchdb-fauxton,cloudant/couchdb-fauxton,robertkowalski/couchdb-fauxton,michellephung/couchdb-fauxton,benkeen/couchdb-fauxton,cloudant/couchdb-fauxton