Fix imports
Fix indentation
Use the module name for fake frames message
Re organise HttpConnection to handle exceptions
Hardcode (bad) sensible defaults for notInApp