Added function to switch to a different pad without having to reload the whole page.
Fallback for browsers that don't support window.history.pushstate
Cleaning up switchToPad functionality so that we only need one call to the server("SWITCH_TO_PAD") instead of two (cleaning session info and client ready).
Also Clearing chat messages when switchToPad is called in pad.js instead of having the server tell the client to clear the chat messages.
Checking if the author for the sessions match instead of comparing the entire session.
Merge branch 'switch-to-pad' of github.com:derosm2/etherpad-lite into localTest
fix sockets of switch to pad
Merge pull request #2413 from ether/switch-to-pad-derosm2

Switch to pad derosm2