added support for BACK button. Added simple support for remote debugging. Added simple support for alert and confirm prompts.