Right now, tools/remote.js and public/v3/remote.js duplicate a lot of code for checking the status, etc... Share the common code between the two.
Created attachment 304544 [details] Cleanup
This refactoring also makes some aspects of RemoteAPI, e.g. status check, testable.
Comment on attachment 304544 [details] Cleanup rs=me
Thanks for the review!
Committed r214008: <http://trac.webkit.org/changeset/214008>