node-webkit refactor.
Revert "node-webkit refactor."

This reverts commit f91dd6632c806650a76909744f9a4a6cd5902d9a.
Revert "Revert "node-webkit refactor.""

This reverts commit 0457f23be2df64337ebcc1ad5c7bd08cb218d14e.
Moving stuff around.
Refactor to work as Chrome packaged app.