2427 ux viewing replication documents loses context

When navigating back from a viewing/editing a document, the user expects to 'go back' to the previous page they came from. Currently, 'back' button will always go back to all_docs of the document's database, which may not be the the previous page the user came from.

1. I changed the 'back to _all_docs' button to read 'back', so depending what page sent you to the documents page, you aren't forced to go back to _all_docs.
2. I changed the 'goback' function, so if you have been inside fauxton for more than one page, you'll be redirected there via 'window.history.back()', if pasted the page into your browser, the back button will take you back to _all_docs of the database of the document you were viewing
3. I added a history array to the router that keeps that last 2 links you visited. 

I was relying the 'undefined' entry to indicate that the user was coming a page that was pasted in. I can change it to a string instead.