Reorganized server code into modules
Consolidated index.html special case with general file case