Initial refactor to actions framework
Merge pull request #1 from dhanji/dhanji/refactor-webserver

Initial refactor to actions framework