show connect button or allocated remote debugger port + minor tweaks

- show connect button on Firefox >= 20.0a1 (where connect devtools xhtml page is available)
- show allocated remote debugger port on previous Firefox releases as fallback
- minor tweaks (comply with code conventions, fix typos and unclosed tags)