Node webkit fixes

Should close #31, close #41, close #43, close #44, close #45