Base code in place

Started coding this up. It seems pretty flakey right now. Mostly related to browser connection issues but the base code is pretty much in place.