PageAgent: fix for main script without extension

Fixed a bug where `node --debug app` caused node-inspector to add
a non-existent file `app` into the resource tree.
Overrides: show main app file

Added a startup hook that opens the main application file in case no files
are opened.

Created a public API for embedders, added function buildInspectorUrl().