progress on modularising server logic.
commit dist server files