Cleaned up server code and got directory traversal working.
Tweaked some naming, removed old server code, and tweaked template.