Fixed a url parse bug.
Removed old server code.
Removed old tests.
Added state change logging.
Added a connect URL in the page.