Readded addStateMethod()
Merge branch 'restart' of github.com:mimshwright/commonwealth.js into restart