Move initial state into runner.js
Refactor the network code slightly
Refactor the initialization code