Rewrote the backend server for grins and fixed a bug.

* Bug: When updating a file the sidebar didn't refresh