Bug fixes, qtwebkit on osx, networking

Fixes for #210, #170, #63, #245, #246